1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/MC/Hexagon/PacketRules/endloop_branches.s
Krzysztof Parzyszek 15e1419679 [Hexagon] Extract function that checks endloops with other branches
Change location number to point to conflicting branch instruction.

Patch by Colin LeMahieu.

llvm-svn: 301946
2017-05-02 17:56:11 +00:00

13 lines
385 B
ArmAsm

# 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