cranelift: Make sqmul_round_sat vector only (#5941)

This commit is contained in:
Afonso Bordado
2023-03-06 18:22:50 +00:00
committed by GitHub
parent 3782ce7333
commit 6d9ab2067b

View File

@@ -1674,7 +1674,7 @@ pub(crate) fn define(
let I16or32 = &TypeVar::new( let I16or32 = &TypeVar::new(
"I16or32", "I16or32",
"A scalar or vector integer type with 16- or 32-bit numbers", "A vector integer type with 16- or 32-bit numbers",
TypeSetBuilder::new().ints(16..32).simd_lanes(4..8).build(), TypeSetBuilder::new().ints(16..32).simd_lanes(4..8).build(),
); );
@@ -1690,8 +1690,7 @@ pub(crate) fn define(
is the number bitwidth: is the number bitwidth:
`a := signed_saturate((x * y + 1 << (Q - 1)) >> Q)` `a := signed_saturate((x * y + 1 << (Q - 1)) >> Q)`
Polymorphic over all integer types (scalar and vector) with 16- or Polymorphic over all integer vector types with 16- or 32-bit numbers.
32-bit numbers.
"#, "#,
&formats.binary, &formats.binary,
) )