brintos

brintos / llvm-project-archived public Read only

0
0
Text · 719 B · c84c16e Raw
26 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t3// RUN: ld.lld %t -o %t24// RUN: llvm-objdump --triple=thumbv7a-none-linux-gnueabi -d %t2 | FileCheck %s5 6// Check that no thunks are created for an undefined weak symbol7 .syntax unified8 9.weak target10 11.section .text.thumb, "ax", %progbits12 .thumb13 .global14_start:15 bl target16 b target17 b.w target18 19// CHECK: Disassembly of section .text:20// CHECK-EMPTY:21// CHECK-NEXT: <_start>:22// 0x200b8 = next instruction23// CHECK:         200b4: {{.*}} bl      0x200b8 <_start+0x4> @ imm = #024// CHECK-NEXT:    200b8: {{.*}} b.w     0x200bc <_start+0x8> @ imm = #025// CHECK-NEXT:    200bc: {{.*}} b.w     0x200c0 <_start+0xc> @ imm = #026