29 lines · plain
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 %s7 8# CHECK: 00000000 <foo>:9# CHECK: 00000004 <test>:10# CHECK-NEXT: 4: nop11# CHECK-NEXT: 6: blx 0x0 <foo> @ imm = #-812# CHECK-NEXT: a: blx 0x10 <bar> @ imm = #413# CHECK: 00000010 <bar>:14 15 .arm16foo:17 nop18 19 .thumb20test:21 nop22 blx #-823 blx #424 25 .arm26 .p2align 227bar:28 nop29