blob: 6c2b69885a105236296c8a9a562ec6253a6fcd40 [file] [log] [blame]
Fangrui Songb6772b82018-06-26 22:20:041// REQUIRES: arm
Peter Smithd1be0262018-08-20 09:19:302// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t
Fangrui Song40a9f222018-07-02 17:48:233// RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
Peter Smith57eb0462017-11-28 13:51:484
5// On Arm v4t there is no blx instruction so all interworking must go via
6// a thunk. At present we don't support v4t so we give a warning for unsupported
7// features.
8
Rui Ueyama9db06422018-10-25 18:07:559// CHECK: warning: lld uses blx instruction, no object with architecture supporting feature detected
Peter Smith57eb0462017-11-28 13:51:4810
11 .text
12 .syntax unified
13 .cpu arm7tdmi
Peter Smith57eb0462017-11-28 13:51:4814 .arm
15 .globl _start
16 .type _start,%function
17 .p2align 2
18_start:
19 bl thumbfunc
20 bx lr
21
22 .thumb
23 .section .text.2, "ax", %progbits
24 .globl thumbfunc
25 .type thumbfunc,%function
26thumbfunc:
27 bx lr