ir/tests/aarch64/cond_002.irt
Dmitry Stogov 6edb011548 Fixed code generation for unordered floating point comparison
- Fixed COND on AArch64
- Fixed SYM support on AArch64
2023-10-24 10:22:04 +03:00

21 lines
300 B
Plaintext

--TEST--
002: COND(D,I,I)
--TARGET--
aarch64
--ARGS--
-S
--CODE--
{
l_1 = START(ret);
double x = PARAM(l_1, "x", 1);
int32_t y = PARAM(l_1, "y", 2);
int32_t z = PARAM(l_1, "z", 3);
int32_t val = COND(x, y, z);
ret = RETURN(l_1, val);
}
--EXPECT--
test:
fcmp d0, #0.0
csel w0, w0, w1, ne
ret