ir/tests/Windows-x86_64/cond_003.irt

26 lines
357 B
Plaintext
Raw Normal View History

--TEST--
003: COND(I,D,D)
--TARGET--
Windows-x86_64
--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:
2023-10-13 20:04:38 +02:00
testl %ecx, %ecx
je .L1
2023-10-13 19:57:42 +02:00
movapd %xmm1, %xmm0
jmp .L2
.L1:
2023-10-13 19:57:42 +02:00
movapd %xmm2, %xmm0
.L2:
retq