mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
71e2ca6e32
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
17 lines
468 B
ArmAsm
17 lines
468 B
ArmAsm
# REQUIRES: mips
|
|
# Check reading/writing implicit addend for R_MIPS_26 relocation.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld %t.o -o %t.exe
|
|
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t.exe | FileCheck %s
|
|
|
|
# CHECK: Disassembly of section .text:
|
|
# CHECK-EMPTY:
|
|
# CHECK: <__start>:
|
|
# CHECK-NEXT: [[ADDR:[0-9a-f]+]]: jal 0x80[[ADDR]]
|
|
|
|
.text
|
|
.global __start
|
|
__start:
|
|
jal __start+0x8000000
|