summaryrefslogtreecommitdiff
path: root/test/MC/Hexagon/PacketRules/endloop_branches.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Hexagon/PacketRules/endloop_branches.s')
-rw-r--r--test/MC/Hexagon/PacketRules/endloop_branches.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/Hexagon/PacketRules/endloop_branches.s b/test/MC/Hexagon/PacketRules/endloop_branches.s
new file mode 100644
index 0000000000000..fbaa246c0684b
--- /dev/null
+++ b/test/MC/Hexagon/PacketRules/endloop_branches.s
@@ -0,0 +1,12 @@
+# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
+
+# Check that a branch in an end-loop packet is caught.
+
+{ jump unknown
+}:endloop0
+# CHECK: 5:3: error: packet marked with `:endloop0' cannot contain instructions that modify register
+
+{ jump unknown
+}:endloop1
+
+# CHECK: 9:3: error: packet marked with `:endloop1' cannot contain instructions that modify register