bolt/deps/llvm-18.1.8/llvm/test/MC/Hexagon/c4_newval.s

20 lines
563 B
ArmAsm
Raw Normal View History

2025-02-14 19:21:04 +01:00
# RUN: not llvm-mc -triple=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