blob: 303f84fb14ff369ee58cb8524460bc7255866083 [file] [log] [blame]
Colin LeMahieufa555832015-11-13 01:46:06 +00001# RUN: llvm-mc -triple=hexagon -filetype=asm %s 2>%t; FileCheck %s <%t
2
3# Check that a branch in an end-loop packet is caught.
4
51:
6{
7 r0 = #1
8 p0 = cmp.eq (r1, r2)
9 if (p0) jump 1b
10}:endloop0
11
122:
13{
14 r0 = #1
15 p0 = cmp.eq (r1, r2)
16 if (p0) jump 2b
17}:endloop1
18
19# CHECK: rror: packet marked with `:endloop{{.}}' cannot contain instructions that modify register