Home | History | Annotate | Download | only in Hexagon
      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 
      5 1:
      6 {
      7 	r0 = #1
      8 	p0 = cmp.eq (r1, r2)
      9 	if (p0) jump 1b
     10 }:endloop0
     11 
     12 2:
     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