llvm-for-llvmta/test/MC/Hexagon/ro-c9.s

7 lines
193 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: llvm-mc -arch=hexagon -filetype=asm %s 2> %t; FileCheck %s < %t
# Check that changes to a read-only register is caught.
{ pc = r0 }
# CHECK: error: Cannot write to read-only register