1 @ RUN
: not llvm-mc
-triple thumbv7-apple-ios
-filetype
=obj
%s
-o
/dev
/null
2>&1 | FileCheck
%s
9 @
A misalgined ARM destination.
15 @
And a properly aligned one.
22 @ Align this Thumb function so we can predict the outcome of
23 @
"Align(PC, 4)" during blx operation.
29 blx _misaligned @ PC
=0 (mod
4)
31 blx _misaligned @ PC
=2 (mod
4)
33 blx _aligned @ PC
=0 (mod
4)
35 blx _aligned @ PC
=2 (mod
4)
37 @ CHECK
: error
: misaligned ARM call destination
38 @ CHECK
: blx _misaligned
39 @ CHECK
: error
: misaligned ARM call destination
40 @ CHECK
: blx _misaligned