qemu-e2k/tests/tcg/hexagon/test_packet.S
Niccolò Izzo 585a86b104 target/hexagon: import additional tests
Signed-off-by: Alessandro Di Federico <ale@rev.ng>
Signed-off-by: Niccolò Izzo <nizzo@rev.ng>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20220923173831.227551-12-anjo@rev.ng>
2022-12-16 12:30:28 -08:00

30 lines
479 B
ArmAsm

/*
* Purpose: test that writes of a register in a packet are performed only after
* that packet has finished its execution.
*/
.text
.globl _start
_start:
{
allocframe(#8)
}
{
r2 = #4
r3 = #6
}
{
memw(sp+#0) = r2
}
{
r3 = memw(sp+#0)
r0 = add(r2, r3)
}
{
deallocframe
p0 = cmp.eq(r3, #4)
p0 = cmp.eq(r0, #10); if (p0.new) jump:t pass
jump fail
}