Restrict the types for isplit and iconcat to match backends (#6070)

* Restrict the types for isplit and iconcat to match backends

* Admit unimplemented bitwidths to isplit/iconcat

* Modify the NarrowInt type instead of shadowing it

* Fix filetest failures
This commit is contained in:
Trevor Elliott
2023-03-20 18:21:00 -07:00
committed by GitHub
parent 7d9318fe77
commit 861220c433
3 changed files with 10 additions and 19 deletions

View File

@@ -647,12 +647,8 @@ pub(crate) fn define(
let NarrowInt = &TypeVar::new(
"NarrowInt",
"An integer type with lanes type to `i64`",
TypeSetBuilder::new()
.ints(8..64)
.simd_lanes(Interval::All)
.dynamic_simd_lanes(Interval::All)
.build(),
"An integer type of width up to `i64`",
TypeSetBuilder::new().ints(8..64).build(),
);
let ScalarTruthy = &TypeVar::new(
@@ -3591,11 +3587,8 @@ pub(crate) fn define(
let WideInt = &TypeVar::new(
"WideInt",
"An integer type with lanes from `i16` upwards",
TypeSetBuilder::new()
.ints(16..128)
.simd_lanes(Interval::All)
.build(),
"An integer type of width `i16` upwards",
TypeSetBuilder::new().ints(16..128).build(),
);
ig.push(