ir/tests/aarch64/cond_001.irt

21 lines
298 B
Plaintext
Raw Normal View History

--TEST--
001: COND(I,I,I)
--TARGET--
aarch64
--ARGS--
-S
--CODE--
{
l_1 = START(ret);
int32_t 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:
cmp w0, #0
csel w0, w1, w2, ne
ret