diff options
Diffstat (limited to 'test/MC/Hexagon/non-relocatable.s')
-rw-r--r-- | test/MC/Hexagon/non-relocatable.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Hexagon/non-relocatable.s b/test/MC/Hexagon/non-relocatable.s new file mode 100644 index 00000000000..72a17901c62 --- /dev/null +++ b/test/MC/Hexagon/non-relocatable.s @@ -0,0 +1,10 @@ +# RUN: not llvm-mc -arch=hexagon -filetype=obj %s 2>%t; FileCheck %s <%t + +# Don't allow a symbolic operand for an insn that cannot take a +# relocation. + +r7:6 = rol(r5:4,#r2) + +# This should produce an error +#CHECK: error: + |