The tests for the SIMD floating-point maximum and minimum operations require particular care because the handling of the NaN values is non-deterministic and may vary between platforms. There is no way to match several NaN values in a test, so the solution is to extract the non-deterministic test cases into a separate file that is subsequently replicated for every backend under test, with adjustments made to the expected results. Copyright (c) 2021, Arm Limited.
14 lines
212 B
Plaintext
14 lines
212 B
Plaintext
test legalizer
|
|
target aarch64
|
|
target i686
|
|
|
|
function %foo() -> i64 {
|
|
block0:
|
|
v1 = iconst.i64 0x6400000042
|
|
return v1
|
|
}
|
|
|
|
; check: v2 = iconst.i32 66
|
|
; check: v3 = iconst.i32 100
|
|
; check: v1 = iconcat v2, v3
|