mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
25a0241f66
The new behavior matches GNU objdump. A pair of angle brackets makes tests slightly easier. `.foo:` is not unique and thus cannot be used in a `CHECK-LABEL:` directive. Without `-LABEL`, the CHECK line can match the `Disassembly of section` line and causes the next `CHECK-NEXT:` to fail. ``` Disassembly of section .foo: 0000000000001634 .foo: ``` Bdragon: <> has metalinguistic connotation. it just "feels right" Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D75713
37 lines
987 B
ArmAsm
37 lines
987 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \
|
|
# RUN: | llvm-objdump -d - | FileCheck %s
|
|
|
|
# CHECK: <foo>:
|
|
# CHECK-NEXT: 0: 0c 00 00 02 jal 8 <loc1>
|
|
# CHECK-NEXT: 4: 00 00 00 00 nop
|
|
#
|
|
# CHECK: <loc1>:
|
|
# CHECK-NEXT: 8: 0c 00 00 06 jal 24 <loc3>
|
|
# CHECK-NEXT: c: 00 00 00 00 nop
|
|
#
|
|
# CHECK: <loc2>:
|
|
# CHECK-NEXT: 10: 10 00 ff fd b -8 <loc1>
|
|
# CHECK-NEXT: 14: 00 00 00 00 nop
|
|
#
|
|
# CHECK: <loc3>:
|
|
# CHECK-NEXT: 18: 10 43 ff fd beq $2, $3, -8 <loc2>
|
|
# CHECK-NEXT: 1c: 00 00 00 00 nop
|
|
# CHECK-NEXT: 20: 04 11 ff f9 bal -24 <loc1>
|
|
# CHECK-NEXT: 24: 00 00 00 00 nop
|
|
# CHECK-NEXT: 28: 08 00 00 04 j 16 <loc2>
|
|
|
|
.text
|
|
.globl foo
|
|
.ent foo
|
|
foo:
|
|
jal loc1
|
|
loc1:
|
|
jal loc3
|
|
loc2:
|
|
b loc1
|
|
loc3:
|
|
beq $2, $3, loc2
|
|
bal loc1
|
|
j loc2
|
|
.end foo
|