1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/MC/Hexagon/endloop.s
2016-05-20 14:01:34 +00:00

20 lines
379 B
ArmAsm

# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
# Check that a branch in an end-loop packet is caught.
1:
{
r0 = #1
p0 = cmp.eq (r1, r2)
if (p0) jump 1b
}:endloop0
2:
{
r0 = #1
p0 = cmp.eq (r1, r2)
if (p0) jump 2b
}:endloop1
# CHECK: rror: packet marked with `:endloop{{.}}' cannot contain instructions that modify register