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
7define void @ft() #0 {
8; CHECK: .code 16
9; CHECK: .thumb_func
10; CHECK-LABEL: ft:
11entry:
12  ret void
13}
14
15define void @fz() #1 {
16; CHECK: .code 32
17; CHECK-LABEL: fz:
18entry:
19  ret void
20}
21
22attributes #0 = { "target-features"="+thumb-mode" }
23attributes #1 = { "target-features"="-thumb-mode" }
24