mirror of
https://github.com/danog/ir.git
synced 2024-12-02 17:55:40 +01:00
6edb011548
- Fixed COND on AArch64 - Fixed SYM support on AArch64
21 lines
296 B
Plaintext
21 lines
296 B
Plaintext
--TEST--
|
|
003: COND(I,D,D)
|
|
--TARGET--
|
|
aarch64
|
|
--ARGS--
|
|
-S
|
|
--CODE--
|
|
{
|
|
l_1 = START(ret);
|
|
int32_t x = PARAM(l_1, "x", 1);
|
|
double y = PARAM(l_1, "y", 2);
|
|
double z = PARAM(l_1, "z", 3);
|
|
double val = COND(x, y, z);
|
|
ret = RETURN(l_1, val);
|
|
}
|
|
--EXPECT--
|
|
test:
|
|
cmp w0, #0
|
|
fcsel d0, d0, d1, ne
|
|
ret
|