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

@@ -69,7 +69,7 @@ function %swizzle() -> i8x16 {
block0:
v0 = vconst.i8x16 [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]
v1 = vconst.i8x16 [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}

View File

@@ -3,7 +3,7 @@ target s390x
function %swizzle(i8x16, i8x16) -> i8x16 wasmtime_system_v {
block0(v0: i8x16, v1: i8x16):
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}

View File

@@ -3,7 +3,7 @@ target s390x
function %swizzle(i8x16, i8x16) -> i8x16 {
block0(v0: i8x16, v1: i8x16):
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}

View File

@@ -114,7 +114,7 @@ function %swizzle() -> i8x16 {
block0:
v0 = vconst.i8x16 [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]
v1 = vconst.i8x16 [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}

View File

@@ -52,7 +52,7 @@ block0:
function %swizzle(i8x16, i8x16) -> i8x16 {
block0(v0: i8x16, v1: i8x16):
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}
; reverse the lanes, with over-large index 42 using lane 0

View File

@@ -7,7 +7,7 @@ target x86_64 has_sse3 has_ssse3 has_sse41
function %swizzle_i8x16(i8x16, i8x16) -> i8x16 {
block0(v0: i8x16, v1: i8x16):
v2 = swizzle.i8x16 v0, v1
v2 = swizzle v0, v1
return v2
}
; run: %swizzle_i8x16([1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16], [0 9 15 1 6 13 7 11 10 8 100 12 4 2 3 5]) == [1 10 16 2 7 14 8 12 11 9 0 13 5 3 4 6]