ir/tests/Windows-x86_64/cond_004.irt

32 lines
500 B
Plaintext
Raw Normal View History

--TEST--
004: COND(D,D,D)
--TARGET--
Windows-x86_64
--ARGS--
-S
--CODE--
{
l_1 = START(ret);
double 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:
ucomisd .L4(%rip), %xmm0
jp .L1
je .L2
.L1:
movapd %xmm1, %xmm0
jmp .L3
.L2:
movapd %xmm2, %xmm0
.L3:
retq
.rodata
.db 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90
.L4:
.db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00