xref: /aosp_15_r20/external/llvm/test/MC/Hexagon/endloop.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
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
20