ir/tests/debug.Windows-x86_64/memop_008.irt

21 lines
313 B
Plaintext
Raw Normal View History

2023-03-02 15:57:26 +01:00
--TEST--
008: Memory update (LOAD/STORE)
--TARGET--
Windows-x86_64
--ARGS--
-S
--CODE--
{
int32_t c = 0x80;
l_1 = START(l_4);
uintptr_t p = PARAM(l_1, "p", 1);
int32_t z, l_2 = LOAD(l_1, p);
int32_t ret = AND(z, c);
l_3 = STORE(l_2, p, ret);
l_4 = RETURN(l_3);
}
--EXPECT--
test:
andl $0x80, (%rcx)
retq