1 @ RUN
: not llvm-mc
-triple
=armv7-unknown-linux-gnueabi
< %s
2> %t
2 @ RUN
: FileCheck
< %t %s
4 @ Check the diagnostics for
.setfp directive.
10 @
-------------------------------------------------------------------------------
11 @ TEST1
: .setfp before .fnstart
12 @
-------------------------------------------------------------------------------
17 @ CHECK
: error
: .fnstart must precede .setfp directive
18 @ CHECK
: .setfp fp, sp, #0
26 @
-------------------------------------------------------------------------------
27 @ TEST2
: .setfp after .handlerdata
28 @
-------------------------------------------------------------------------------
36 @ CHECK
: error
: .setfp must precede .handlerdata directive
37 @ CHECK
: .setfp fp, sp, #0
43 @
-------------------------------------------------------------------------------
44 @ TEST3
: .setfp with bad fp register
45 @
-------------------------------------------------------------------------------
52 @ CHECK
: error
: frame pointer register expected
53 @ CHECK
: .setfp 0, r0, #0
59 @
-------------------------------------------------------------------------------
60 @ TEST4
: .setfp with bad sp register
61 @
-------------------------------------------------------------------------------
68 @ CHECK
: error
: stack pointer register expected
69 @ CHECK
: .setfp fp, 0, #0
75 @
-------------------------------------------------------------------------------
76 @ TEST5
: .setfp with non-sp register as second operand
77 @
-------------------------------------------------------------------------------
84 @ CHECK
: error
: register should
be either $sp
or the latest fp register
85 @ CHECK
: .setfp fp, r0, #0