1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/MC/Hexagon/registers_readonly.s
Krzysztof Parzyszek f44562707e [Hexagon] Improving error reporting for writing to read only registers
Patch by Colin LeMahieu.

llvm-svn: 301828
2017-05-01 20:10:41 +00:00

8 lines
215 B
ArmAsm

# RUN: not llvm-mc -arch=hexagon -filetype=obj -mv5 %s 2>&1 | FileCheck %s
# CHECK: 4:1: error: Cannot write to read-only register `PC'
pc = r0
# CHECK: 7:1: error: Cannot write to read-only register `PC'
c9 = r0