1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/Hexagon/c4_newval.s
Brian Cain ededcfd109 [Hexagon] pX.new cannot be used with p3:0 as producer
Writes to p3:0 do not produce new values, we should bar any .new
consumer trying to use it as a producer.
2020-05-19 17:06:34 -05:00

20 lines
560 B
ArmAsm

# RUN: not llvm-mc -arch=hexagon %s 2>%t; FileCheck --implicit-check-not=error %s <%t
.Lfoo:
{ p3:0 = r0
if (!p0.new) jump:t .Lfoo }
# CHECK: error: register `P0' used with `.new' but not validly modified in the same packet
{ c4 = r0
if (!p0.new) jump:t .Lfoo }
# CHECK: error: register `P0' used with `.new' but not validly modified in the same packet
{ c4 = r0
p0 = r0
if (!p0.new) jump:t .Lfoo }
# CHECK: error: register `P0' used with `.new' but not validly modified in the same packet
# CHECK: error: register `P3_0' modified more than once