mirror of
https://github.com/danog/ir.git
synced 2024-12-02 17:55:40 +01:00
25 lines
396 B
Plaintext
25 lines
396 B
Plaintext
|
--TEST--
|
||
|
006: Memory update (shift)
|
||
|
--TARGET--
|
||
|
Windows-x86_64
|
||
|
--ARGS--
|
||
|
-S
|
||
|
--CODE--
|
||
|
{
|
||
|
l_1 = START(l_5);
|
||
|
int32_t y = PARAM(l_1, "y", 1);
|
||
|
int32_t v = VAR(l_1, "_spill_");
|
||
|
l_2 = VSTORE(l_1, v, y);
|
||
|
int32_t z, l_3 = VLOAD(l_2, v);
|
||
|
int32_t ret = SHL(z, y);
|
||
|
l_4 = VSTORE(l_3, v, ret);
|
||
|
l_5 = RETURN(l_4);
|
||
|
}
|
||
|
--EXPECT--
|
||
|
test:
|
||
|
subq $8, %rsp
|
||
|
movl %ecx, (%rsp)
|
||
|
shll %cl, (%rsp)
|
||
|
addq $8, %rsp
|
||
|
retq
|