1 # RUN: llvm-mc -triple=hexagon -filetype=asm %s 2>%t; FileCheck --implicit-check-not=error: %s <%t
3 # Check that multiple changes to a predicate in a packet are caught.
5 { p0
= cmp.eq
(r0, r0); p3
:0 = r0 }
6 # CHECK: rror: register {{.+}} modified more than once
8 { p0
= cmp.eq
(r0, r0); c4
= r0 }
9 # CHECK: rror: register {{.+}} modified more than once
12 # CHECK-NOT: rror: register {{.+}} modified more than once
14 # Multiple writes to the same predicate register are permitted:
16 { p0
= cmp.eq
(r0, r0); p0
= and(p1
, p2
) }
17 # CHECK-NOT: rror: register {{.+}} modified more than once