diff options
Diffstat (limited to 'llvm/test/MC/Hexagon/multiple_errs.s')
-rw-r--r-- | llvm/test/MC/Hexagon/multiple_errs.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/multiple_errs.s b/llvm/test/MC/Hexagon/multiple_errs.s new file mode 100644 index 00000000000..cd04c0efbd3 --- /dev/null +++ b/llvm/test/MC/Hexagon/multiple_errs.s @@ -0,0 +1,10 @@ +# RUN: not llvm-mc -arch=hexagon -filetype=asm %s 2> %t; FileCheck %s < %t +# + +{ + if (!p0) r0=r1; + if (!p0) r0=r2; + trap0(#15); +} +# CHECK: error: register `R0' modified more than once +# CHECK: error: Instruction is marked `isSolo' and cannot have other instructions in the same packet |