Replace InsertLane format with TernaryImm8

The InsertLane format has an ordering (`value().imm().value()`) and immediate name (`"lane"`) that make it awkward to use for other instructions. This changes the ordering (`value().value().imm()`) and uses the default name (`"imm"`) throughout the codebase.
This commit is contained in:
Andrew Brown
2020-05-26 13:56:52 -07:00
parent e430984ac4
commit 7d6e94b952
17 changed files with 69 additions and 69 deletions

View File

@@ -6,7 +6,7 @@ function %insertlane_i32x4() {
block0:
v0 = vconst.i32x4 [0 0 0 0]
v1 = iconst.i32 42
v2 = insertlane v0, 4, v1 ; error: The lane 4 does not index into the type i32x4
v2 = insertlane v0, v1, 4 ; error: The lane 4 does not index into the type i32x4
return
}
@@ -14,7 +14,7 @@ function %insertlane_b16x8() {
block0:
v0 = vconst.b16x8 [false false false false false false false false]
v1 = bconst.b16 true
v2 = insertlane v0, 8, v1 ; error: The lane 8 does not index into the type b16x8
v2 = insertlane v0, v1, 8 ; error: The lane 8 does not index into the type b16x8
return
}
@@ -22,7 +22,7 @@ function %insertlane_f64x2() {
block0:
v0 = vconst.f64x2 0x00
v1 = f64const 0x0.1
v2 = insertlane v0, 2, v1 ; error: The lane 2 does not index into the type f64x2
v2 = insertlane v0, v1, 2 ; error: The lane 2 does not index into the type f64x2
return
}