ir/tests/dead_load_003.irt
2022-11-08 15:39:00 +03:00

22 lines
388 B
Plaintext

--TEST--
003: dead loads
--CODE--
{
uintptr_t c_1 = 16;
l_1 = START(l_6);
uintptr_t d_2 = PARAM(l_1, "a", 0);
uintptr_t d_3, l_3 = LOAD(l_1, d_2);
uintptr_t d_4 = ADD(d_3, c_1);
int32_t d_5, l_5 = LOAD(l_3, d_4);
l_6 = RETURN(l_5);
}
--EXPECT--
{
uintptr_t c_1 = 0;
bool c_2 = 0;
bool c_3 = 1;
l_1 = START(l_3);
uintptr_t d_2 = PARAM(l_1, "a", 0);
l_3 = RETURN(l_1, null);
}