Debian Codegraph @

llvm/test/MC/Hexagon/multiple-pc4.s

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