2018-06-27 06:20:04 +08:00
|
|
|
// REQUIRES: arm
|
2016-11-03 19:49:23 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
|
2019-07-22 19:37:03 +08:00
|
|
|
// RUN: ld.lld %t -o %t2
|
2020-03-16 08:47:44 +08:00
|
|
|
// RUN: llvm-objdump --triple=thumbv7a-none-linux-gnueabi -d %t2 | FileCheck %s
|
2016-11-03 19:49:23 +08:00
|
|
|
|
|
|
|
// Check that no thunks are created for an undefined weak symbol
|
|
|
|
.syntax unified
|
|
|
|
|
|
|
|
.weak target
|
|
|
|
|
|
|
|
.section .text.thumb, "ax", %progbits
|
|
|
|
.thumb
|
|
|
|
.global
|
|
|
|
_start:
|
|
|
|
bl target
|
|
|
|
b target
|
|
|
|
b.w target
|
|
|
|
|
|
|
|
// CHECK: Disassembly of section .text:
|
2019-05-01 18:40:48 +08:00
|
|
|
// CHECK-EMPTY:
|
2020-03-06 06:18:38 +08:00
|
|
|
// CHECK-NEXT: <_start>:
|
2019-08-27 19:52:36 +08:00
|
|
|
// 0x110b8 = next instruction
|
2020-04-18 23:06:37 +08:00
|
|
|
// CHECK: 200b4: {{.*}} bl #0
|
|
|
|
// CHECK-NEXT: 200b8: {{.*}} b.w #0 <_start+0x8>
|
|
|
|
// CHECK-NEXT: 200bc: {{.*}} b.w #0 <_start+0xc>
|