mirror of
https://github.com/danog/ir.git
synced 2024-12-13 09:47:32 +01:00
23 lines
349 B
Plaintext
Executable File
23 lines
349 B
Plaintext
Executable File
--TEST--
|
|
LEA 001
|
|
--TARGET--
|
|
Windows-x86_64
|
|
--ARGS--
|
|
-S
|
|
--CODE--
|
|
{
|
|
int64_t i_1 = 10;
|
|
int64_t i_4 = 4;
|
|
l_1 = START(l_2);
|
|
int64_t x = PARAM(l_1, "x", 0);
|
|
int64_t y = PARAM(l_1, "y", 0);
|
|
int64_t z1 = ADD(x, i_1);
|
|
int64_t z2 = MUL(y, i_4);
|
|
int64_t z3 = ADD(z1, z2);
|
|
l_2 = RETURN(l_1, z3);
|
|
}
|
|
--EXPECT--
|
|
test:
|
|
leaq 0xa(%rcx, %rdx, 4), %rax
|
|
retq
|