summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Hexagon/endloop.s
blob: 303f84fb14ff369ee58cb8524460bc7255866083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: llvm-mc -triple=hexagon -filetype=asm %s 2>%t; FileCheck %s <%t

# 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
OpenPOWER on IntegriCloud