xref: /llvm-project/llvm/test/tools/llvm-objdump/ELF/ARM/tblxi-target.s (revision 75cdab6dc2453a508157a9c383b93373a93078d6)
1## Check that the disassembler reports the target address of a Thumb BLX(i)
2## instruction correctly even if the instruction is not 32-bit aligned.
3
4# RUN: llvm-mc %s --triple=armv8a -filetype=obj | \
5# RUN:   llvm-objdump --no-print-imm-hex -dr - --triple armv8a --no-show-raw-insn | \
6# RUN:   FileCheck %s
7
8# CHECK:      00000000 <foo>:
9# CHECK:      00000004 <test>:
10# CHECK-NEXT:   4:  nop
11# CHECK-NEXT:   6:  blx  0x0 <foo>   @ imm = #-8
12# CHECK-NEXT:   a:  blx  0x10 <bar>  @ imm = #4
13# CHECK:      00000010 <bar>:
14
15  .arm
16foo:
17  nop
18
19  .thumb
20test:
21  nop
22  blx #-8
23  blx #4
24
25  .arm
26  .p2align 2
27bar:
28  nop
29