1 @ RUN
: llvm-mc
-triple thumbv7-apple-ios
-filetype
=obj
%s
-o
%t
2 @ RUN
: llvm-objdump
-macho
-d
%t | FileCheck
%s
11 @
A properly aligned ARM function
18 @ Align this Thumb function so we can predict the outcome of
19 @
"Align(PC, 4)" during blx operation.
26 blx _aligned @ PC
=0 (mod
4)
27 blx _aligned @ PC
=0 (mod
4)
29 blx _aligned @ PC
=2 (mod
4)
32 @ CHECK
: blx _elsewhere
33 @ CHECK
: ff
f7 fa ef blx _aligned
34 @ CHECK
: ff
f7 f8 ef blx _aligned
35 @ CHECK
: ff
f7 f6 ef blx _aligned
36 @ CHECK
: ff
f7 f2 ef blx _f1