ir/tests/Windows-x86_64/cond_002.irt
Dmitry Stogov 4f9724a7fb Fix tests
2023-10-13 21:04:38 +03:00

32 lines
513 B
Plaintext

--TEST--
002: COND(D,I,I)
--TARGET--
Windows-x86_64
--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:
ucomisd .L4(%rip), %xmm0
jp .L1
je .L2
.L1:
movl %edx, %eax
jmp .L3
.L2:
movl %r8d, %eax
.L3:
retq
.rodata
.db 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90
.L4:
.db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00