This commit goes through the `runtests` folder of the `filetests` test suite and ensure that everything which uses simd or float-related instructions on x64 is executed with the baseline support for x86_64 in addition to adding in AVX support. Most of the instructions used have AVX equivalents so this should help test all of the equivalents in addition to the codegen filetests in the x64 folder.
29 lines
658 B
Plaintext
29 lines
658 B
Plaintext
test interpret
|
|
test run
|
|
target aarch64
|
|
target s390x
|
|
set enable_simd
|
|
target x86_64 has_sse3 has_ssse3 has_sse41
|
|
target x86_64 has_sse3 has_ssse3 has_sse41 has_avx
|
|
|
|
function %uwidenlow_i8x16(i8x16) -> i16x8 {
|
|
block0(v0: i8x16):
|
|
v1 = uwiden_low v0
|
|
return v1
|
|
}
|
|
; run: %uwidenlow_i8x16([1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16]) == [1 2 3 4 5 6 7 8]
|
|
|
|
function %uwidenlow_i16x8(i16x8) -> i32x4 {
|
|
block0(v0: i16x8):
|
|
v1 = uwiden_low v0
|
|
return v1
|
|
}
|
|
; run: %uwidenlow_i16x8([1 2 3 4 5 6 7 8]) == [1 2 3 4]
|
|
|
|
function %uwidenlow_i32x4(i32x4) -> i64x2 {
|
|
block0(v0: i32x4):
|
|
v1 = uwiden_low v0
|
|
return v1
|
|
}
|
|
; run: %uwidenlow_i32x4([1 2 3 4]) == [1 2]
|