24 lines · plain
1; One file may have multiple functions targeted at different (ARM, Thumb)2; instruction sets. Passing this information to the linker and the assembler3; is done through the ".code 16" and ".code 32" directives.4;5; RUN: llc -mtriple=arm-arm-none-eabi %s -o - | FileCheck %s6 7define void @ft() #0 {8; CHECK: .code 169; CHECK: .thumb_func10; CHECK-LABEL: ft:11entry:12 ret void13}14 15define void @fz() #1 {16; CHECK: .code 3217; CHECK-LABEL: fz:18entry:19 ret void20}21 22attributes #0 = { "target-features"="+thumb-mode" }23attributes #1 = { "target-features"="-thumb-mode" }24