clif: Remove the type variable from swizzle (#5897)

This instruction is only defined with i8x16 inputs and outputs so
there's no need for a type variable, so shadow the otherwise-generic `a`
result with a concrete i8x16 type.
This commit is contained in:
Alex Crichton
2023-02-28 18:38:53 -06:00
committed by GitHub
parent e0ef0b7c72
commit c4a2c1e818
9 changed files with 10 additions and 8 deletions

View File

@@ -367,6 +367,7 @@ fn define_simd_lane_access(
);
let x = &Operand::new("x", I8x16).with_doc("Vector to modify by re-arranging lanes");
let y = &Operand::new("y", I8x16).with_doc("Mask for re-arranging lanes");
let a = &Operand::new("a", I8x16);
ig.push(
Inst::new(
@@ -388,6 +389,7 @@ fn define_simd_lane_access(
let x = &Operand::new("x", TxN).with_doc("The vector to modify");
let y = &Operand::new("y", &TxN.lane_of()).with_doc("New lane value");
let Idx = &Operand::new("Idx", &imm.uimm8).with_doc("Lane index");
let a = &Operand::new("a", TxN);
ig.push(
Inst::new(