1 @ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o /dev/null %s 2>&1 \
8 .type function,%function
13 @ CHECK: error: .fnstart must precede .personalityindex directive
14 @ CHECK: .personalityindex 0
18 .type ununwindable,%function
26 @ CHECK: error: .personalityindex cannot be used with .cantunwind
27 @ CHECK: .personalityindex 0
29 @ CHECK: note: .cantunwind was specified here
34 .type nodata,%function
42 @ CHECK: error: .personalityindex must precede .handlerdata directive
43 @ CHECK: .personalityindex 0
45 @ CHECK: note: .handlerdata was specified here
49 .global multiple_personality
50 .type multiple_personality,%function
54 .personality __aeabi_personality_pr0
58 @ CHECK: error: multiple personality directives
59 @ CHECK: .personalityindex 0
61 @ CHECK: note: .personality was specified here
62 @ CHECK: .personality __aeabi_personality_pr0
64 @ CHECK: note: .personalityindex was specified here
65 @ CHECK: .personalityindex 0
68 .global multiple_personality_indicies
69 .type multiple_personality_indicies,%function
71 multiple_personality_indicies:
77 @ CHECK: error: multiple personality directives
78 @ CHECK: .personalityindex 1
80 @ CHECK: note: .personalityindex was specified here
81 @ CHECK: .personalityindex 0
83 @ CHECK: note: .personalityindex was specified here
84 @ CHECK: .personalityindex 1
87 .global invalid_expression
88 .type invalid_expression,%function
92 .personalityindex <expression>
95 @ CHECK: error: unknown token in expression
96 @ CHECK: .personalityindex <expression>
99 .global nonconstant_expression
100 .type nonconstant_expression,%function
102 nonconstant_expression:
104 .personalityindex nonconstant_expression
107 @ CHECK: error: index must be a constant number
108 @ CHECK: .personalityindex nonconstant_expression
112 .type bad_index,%function
119 @ CHECK: error: personality routine index should be in range [0-3]
120 @ CHECK: .personalityindex 42