diff options
Diffstat (limited to 'llvm/test/MC/Hexagon')
-rw-r--r-- | llvm/test/MC/Hexagon/PacketRules/solo.s | 5 | ||||
-rw-r--r-- | llvm/test/MC/Hexagon/multiple_errs.s | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/PacketRules/solo.s b/llvm/test/MC/Hexagon/PacketRules/solo.s new file mode 100644 index 00000000000..86107d52f1f --- /dev/null +++ b/llvm/test/MC/Hexagon/PacketRules/solo.s @@ -0,0 +1,5 @@ +# RUN: not llvm-mc -arch=hexagon -filetype=asm %s 2>%t; FileCheck %s <%t + +{ brkpt + r0 = r0 } +# CHECK: 3:3: error: Instruction is marked `isSolo' and cannot have other instructions in the same packet 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 |