120
|
1 ; One file may have multiple functions targeted at different (ARM, Thumb)
|
|
2 ; instruction sets. Passing this information to the linker and the assembler
|
|
3 ; is done through the ".code 16" and ".code 32" directives.
|
|
4 ;
|
|
5 ; RUN: llc -mtriple=arm-arm-none-eabi %s -o - | FileCheck %s
|
|
6
|
|
7 define void @ft() #0 {
|
|
8 ; CHECK: .code 16
|
|
9 ; CHECK: .thumb_func
|
|
10 ; CHECK-LABEL: ft:
|
|
11 entry:
|
|
12 ret void
|
|
13 }
|
|
14
|
|
15 define void @fz() #1 {
|
|
16 ; CHECK: .code 32
|
|
17 ; CHECK-LABEL: fz:
|
|
18 entry:
|
|
19 ret void
|
|
20 }
|
|
21
|
|
22 attributes #0 = { "target-features"="+thumb-mode" }
|
|
23 attributes #1 = { "target-features"="-thumb-mode" }
|