37 lines · plain
1@ RUN: llvm-mc -triple thumbv7-apple-ios -filetype=obj %s -o %t2@ RUN: llvm-objdump --macho -d %t | FileCheck %s3 4 @ Size: 2 bytes5 .thumb_func _f16 .thumb7 .globl _f18_f1:9 bx lr10 11 @ A properly aligned ARM function12 .globl _aligned13 .p2align 214 .arm15_aligned:16 bx lr17 18 @ Align this Thumb function so we can predict the outcome of19 @ "Align(PC, 4)" during blx operation.20 .thumb_func _test21 .thumb22 .p2align 223 .globl _test24_test:25 blx _elsewhere26 blx _aligned @ PC=0 (mod 4)27 blx _aligned @ PC=0 (mod 4)28 movs r0, r029 blx _aligned @ PC=2 (mod 4)30 blx _f131 32@ CHECK: blx _elsewhere33@ CHECK: ff f7 fa ef blx _aligned34@ CHECK: ff f7 f8 ef blx _aligned35@ CHECK: ff f7 f6 ef blx _aligned36@ CHECK: ff f7 f2 ef blx _f137