Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / Hexagon / multiple-pc4.s
blobdf759ff8b0b97f32e83f93d5e562050ad8446ebb
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
11 p3:0 = r9
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