mirror of
https://github.com/danog/ir.git
synced 2024-11-26 20:34:53 +01:00
44 lines
986 B
Plaintext
Executable File
44 lines
986 B
Plaintext
Executable File
--TEST--
|
|
002: Parameter Loading
|
|
--TARGET--
|
|
Windows-x86_64
|
|
--ARGS--
|
|
-S
|
|
--CODE--
|
|
{
|
|
l_1 = START(l_2);
|
|
double p_1 = PARAM(l_1, "p_1", 1);
|
|
double p_2 = PARAM(l_1, "p_2", 1);
|
|
double p_3 = PARAM(l_1, "p_3", 1);
|
|
double p_4 = PARAM(l_1, "p_4", 1);
|
|
double p_5 = PARAM(l_1, "p_5", 1);
|
|
double p_6 = PARAM(l_1, "p_6", 1);
|
|
double p_7 = PARAM(l_1, "p_7", 1);
|
|
double p_8 = PARAM(l_1, "p_8", 1);
|
|
double p_9 = PARAM(l_1, "p_9", 1);
|
|
double p_10 = PARAM(l_1, "p_10", 1);
|
|
double r1 = ADD(p_1, p_2);
|
|
double r2 = ADD(r1, p_3);
|
|
double r3 = ADD(r2, p_4);
|
|
double r4 = ADD(r3, p_5);
|
|
double r5 = ADD(r4, p_6);
|
|
double r6 = ADD(r5, p_7);
|
|
double r7 = ADD(r6, p_8);
|
|
double r8 = ADD(r7, p_9);
|
|
double ret = SUB(r8, p_10);
|
|
l_2 = RETURN(l_1, ret);
|
|
}
|
|
--EXPECT--
|
|
test:
|
|
addsd %xmm0, %xmm1
|
|
addsd %xmm2, %xmm1
|
|
addsd %xmm3, %xmm1
|
|
addsd 8(%rsp), %xmm1
|
|
addsd 0x10(%rsp), %xmm1
|
|
addsd 0x18(%rsp), %xmm1
|
|
addsd 0x20(%rsp), %xmm1
|
|
movapd %xmm1, %xmm0
|
|
addsd 0x28(%rsp), %xmm0
|
|
subsd 0x30(%rsp), %xmm0
|
|
retq
|