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:
Afonso Bordado
2023-01-05 17:19:03 +00:00
committed by GitHub
parent 7bfbec1b57
commit ee6a909ccb
16 changed files with 323 additions and 236 deletions

View File

@@ -0,0 +1,17 @@
test interpret
test run
target aarch64
target s390x
; TODO: Move this to the main file once x86_64 supports this operation
; See: #5529
function %simd_icmp_ugt_i64(i64x2, i64x2) -> i64x2 {
block0(v0: i64x2, v1: i64x2):
v2 = icmp ugt v0, v1
return v2
}
; run: %simd_icmp_ugt_i64([0 1], [0 0]) == [0 -1]
; run: %simd_icmp_ugt_i64([-1 0], [-1 1]) == [0 0]
; run: %simd_icmp_ugt_i64([-5 1], [-1 -1]) == [0 0]
; run: %simd_icmp_ugt_i64([0 0], [0 0]) == [0 0]