1 @ RUN
: llvm-mc
%s
-triple
=armv7-unknown-linux-gnueabi
-filetype
=obj
-o
- \
2 @ RUN
: | llvm-readobj
-S
--sd | FileCheck
%s
4 @ Check for different combination of
.setfp, .pad, .save and .vsave.
8 @
-------------------------------------------------------------------------------
9 @ TEST1
: Check
.pad before .setfp directive.
10 @
-------------------------------------------------------------------------------
24 .personality __gxx_personality_v0
29 @ CHECK
: Name
: .ARM.extab.TEST1
30 @ CHECK
: SectionData
(
31 @ CHECK
: 0000: 00000000 B0009B00 |
........|
37 @
-------------------------------------------------------------------------------
38 @ TEST2
: Check
.pad after .setfp directive.
39 @
-------------------------------------------------------------------------------
53 .personality __gxx_personality_v0
58 @ CHECK
: Name
: .ARM.extab.TEST2
59 @ CHECK
: SectionData
(
60 @ CHECK
: 0000: 00000000 B0419B00 |
.....A..|
66 @
-------------------------------------------------------------------------------
67 @ TEST3
: Check
.setfp, .pad, .setfp directive.
68 @
-------------------------------------------------------------------------------
86 .personality __gxx_personality_v0
91 @ CHECK
: Name
: .ARM.extab.TEST3
92 @ CHECK
: SectionData
(
93 @ CHECK
: 0000: 00000000 B0009B00 |
........|
99 @
-------------------------------------------------------------------------------
100 @ TEST4
: Check
".setfp fp, sp" and ".setfp fp, fp" directive.
101 @
-------------------------------------------------------------------------------
104 .type func4,%function
117 .personality __gxx_personality_v0
122 @ CHECK
: Name
: .ARM.extab.TEST4
123 @ CHECK
: SectionData
(
124 @ CHECK
: 0000: 00000000 B0439B00 |
.....C..|
130 @
-------------------------------------------------------------------------------
131 @ TEST5
: Check
.setfp, .save, .setfp directive.
132 @
-------------------------------------------------------------------------------
135 .type func5,%function
142 .save {r4, r5, r6, r7, r8}
143 push
{r4, r5, r6, r7, r8}
157 pop
{r4, r5, r6, r7, r8}
159 .personality __gxx_personality_v0
164 @ CHECK
: Name
: .ARM.extab.TEST5
165 @ CHECK
: SectionData
(
166 @ CHECK
: 0000: 00000000 80459B01 B0A40360 |
.....E.....`|