xref: /llvm-project/llvm/test/MC/Hexagon/ro-c9.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1# RUN: llvm-mc -triple=hexagon -filetype=asm %s 2> %t; FileCheck %s < %t
2
3# Check that changes to a read-only register is caught.
4
5	{ pc = r0 }
6# CHECK: error: Cannot write to read-only register
7