Stop supporting vectors with bmask (#5948)

Co-authored-by: Jamey Sharp <jsharp@fastly.com>
This commit is contained in:
Trevor Elliott
2023-03-07 09:34:29 -08:00
committed by GitHub
parent 8bb183f16e
commit b44f67b6d7
2 changed files with 5 additions and 42 deletions

View File

@@ -2967,19 +2967,13 @@ pub(crate) fn define(
let Truthy = &TypeVar::new(
"Truthy",
"A scalar or vector whose values are truthy",
TypeSetBuilder::new()
.ints(Interval::All)
.simd_lanes(Interval::All)
.build(),
"A scalar whose values are truthy",
TypeSetBuilder::new().ints(Interval::All).build(),
);
let IntTo = &TypeVar::new(
"IntTo",
"An integer type with the same number of lanes",
TypeSetBuilder::new()
.ints(Interval::All)
.simd_lanes(Interval::All)
.build(),
"An integer type",
TypeSetBuilder::new().ints(Interval::All).build(),
);
let x = &Operand::new("x", Truthy);
let a = &Operand::new("a", IntTo);
@@ -2990,8 +2984,7 @@ pub(crate) fn define(
r#"
Convert `x` to an integer mask.
True maps to all 1s and false maps to all 0s. The result type must have
the same number of vector lanes as the input.
Non-zero maps to all 1s and zero maps to all 0s.
"#,
&formats.unary,
)