diff options
Diffstat (limited to 'llvm/test/MC/Hexagon/PacketRules')
-rw-r--r-- | llvm/test/MC/Hexagon/PacketRules/endloop_branches.s | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/test/MC/Hexagon/PacketRules/endloop_branches.s b/llvm/test/MC/Hexagon/PacketRules/endloop_branches.s index fbaa246c068..46d984189b5 100644 --- a/llvm/test/MC/Hexagon/PacketRules/endloop_branches.s +++ b/llvm/test/MC/Hexagon/PacketRules/endloop_branches.s @@ -1,12 +1,17 @@ # 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 +# CHECK: 4:1: error: Branches cannot be in a packet with hardware loops { jump unknown }:endloop1 +# CHECK: 8:1: error: Branches cannot be in a packet with hardware loops + +{ call unknown +}:endloop0 +# CHECK: 12:1: error: Branches cannot be in a packet with hardware loops -# CHECK: 9:3: error: packet marked with `:endloop1' cannot contain instructions that modify register +{ dealloc_return +}:endloop0 +# CHECK: 16:1: error: Branches cannot be in a packet with hardware loops |