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.
13 lines
214 B
Plaintext
13 lines
214 B
Plaintext
test run
|
|
target aarch64
|
|
target x86_64 machinst
|
|
|
|
function %bint_b8_i128() -> i64, i64 {
|
|
block0:
|
|
v0 = bconst.b8 true
|
|
v1 = bint.i128 v0
|
|
v2, v3 = isplit.i128 v1
|
|
return v2, v3
|
|
}
|
|
; run: %bint_b8_i128() == [1, 0]
|