2022-04-08 14:29:05 +02:00
|
|
|
--TEST--
|
|
|
|
005: eq function
|
2022-05-25 16:38:22 +02:00
|
|
|
--TARGET--
|
|
|
|
x86_64
|
2022-04-08 14:29:05 +02:00
|
|
|
--ARGS--
|
|
|
|
-S -mavx
|
|
|
|
--CODE--
|
|
|
|
{
|
|
|
|
double c = 0;
|
|
|
|
l_1 = START(l_4);
|
|
|
|
double x = PARAM(l_1, "x", 1);
|
|
|
|
bool ret = EQ(x, c);
|
|
|
|
l_4 = RETURN(l_1, ret);
|
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
test:
|
2022-05-26 00:17:02 +02:00
|
|
|
vucomisd .L1(%rip), %xmm0
|
2022-04-08 14:29:05 +02:00
|
|
|
setnp %al
|
2022-05-05 21:35:39 +02:00
|
|
|
movl $0, %ecx
|
|
|
|
cmovnel %ecx, %eax
|
2022-04-08 14:29:05 +02:00
|
|
|
retq
|
2022-05-26 00:17:02 +02:00
|
|
|
.rodata
|
|
|
|
.db 0x90, 0x90, 0x90
|
|
|
|
.L1:
|
|
|
|
.db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|