cranelift: Cleanup SIMD icmp tests (#5530)
* cranelift: Enable more SIMD tests * cranelift: Reorganize icmp tests * cranelift: Enable SIMD icmp tests for unsigned ops * cranelift: Cleanup trailing newlines
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
test interpret
|
||||
test run
|
||||
target x86_64
|
||||
target aarch64
|
||||
target s390x
|
||||
|
||||
function %simd_icmp_sle_i8(i8x16, i8x16) -> i8x16 {
|
||||
block0(v0: i8x16, v1: i8x16):
|
||||
@@ -33,3 +37,15 @@ block0(v0: i64x2, v1: i64x2):
|
||||
; run: %simd_icmp_sle_i64([-1 0], [-1 1]) == [-1 -1]
|
||||
; run: %simd_icmp_sle_i64([-5 1], [-1 -1]) == [-1 0]
|
||||
; run: %simd_icmp_sle_i64([0 0], [0 0]) == [-1 -1]
|
||||
|
||||
|
||||
|
||||
function %icmp_sle_const_i16x8() -> i8 {
|
||||
block0:
|
||||
v0 = vconst.i16x8 [-1 -1 0 0 0 0 0 0]
|
||||
v1 = vconst.i16x8 [-1 0 0 0 0 0 0 0]
|
||||
v2 = icmp sle v0, v1
|
||||
v8 = vall_true v2
|
||||
return v8
|
||||
}
|
||||
; run: %icmp_sle_const_i16x8() == 1
|
||||
|
||||
Reference in New Issue
Block a user