123 lines · plain
1@ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o /dev/null %s 2>&1 \2@ RUN: | FileCheck %s3 4 .syntax unified5 .thumb6 7 .global function8 .type function,%function9 .thumb_func10function:11 .personalityindex 012 13@ CHECK: error: .fnstart must precede .personalityindex directive14@ CHECK: .personalityindex 015@ CHECK: ^16 17 .global ununwindable18 .type ununwindable,%function19 .thumb_func20ununwindable:21 .fnstart22 .cantunwind23 .personalityindex 024 .fnend25 26@ CHECK: error: .personalityindex cannot be used with .cantunwind27@ CHECK: .personalityindex 028@ CHECK: ^29@ CHECK: note: .cantunwind was specified here30@ CHECK: .cantunwind31@ CHECK: ^32 33 .global nodata34 .type nodata,%function35 .thumb_func36nodata:37 .fnstart38 .handlerdata39 .personalityindex 040 .fnend41 42@ CHECK: error: .personalityindex must precede .handlerdata directive43@ CHECK: .personalityindex 044@ CHECK: ^45@ CHECK: note: .handlerdata was specified here46@ CHECK: .handlerdata47@ CHECK: ^48 49 .global multiple_personality50 .type multiple_personality,%function51 .thumb_func52multiple_personality:53 .fnstart54 .personality __aeabi_personality_pr055 .personalityindex 056 .fnend57 58@ CHECK: error: multiple personality directives59@ CHECK: .personalityindex 060@ CHECK: ^61@ CHECK: note: .personality was specified here62@ CHECK: .personality __aeabi_personality_pr063@ CHECK: ^64@ CHECK: note: .personalityindex was specified here65@ CHECK: .personalityindex 066@ CHECK: ^67 68 .global multiple_personality_indices69 .type multiple_personality_indices,%function70 .thumb_func71multiple_personality_indices:72 .fnstart73 .personalityindex 074 .personalityindex 175 .fnend76 77@ CHECK: error: multiple personality directives78@ CHECK: .personalityindex 179@ CHECK: ^80@ CHECK: note: .personalityindex was specified here81@ CHECK: .personalityindex 082@ CHECK: ^83@ CHECK: note: .personalityindex was specified here84@ CHECK: .personalityindex 185@ CHECK: ^86 87 .global invalid_expression88 .type invalid_expression,%function89 .thumb_func90invalid_expression:91 .fnstart92 .personalityindex <expression>93 .fnend94 95@ CHECK: error: unknown token in expression96@ CHECK: .personalityindex <expression>97@ CHECK: ^98 99 .global nonconstant_expression100 .type nonconstant_expression,%function101 .thumb_func102nonconstant_expression:103 .fnstart104 .personalityindex nonconstant_expression105 .fnend106 107@ CHECK: error: index must be a constant number108@ CHECK: .personalityindex nonconstant_expression109@ CHECK: ^110 111 .global bad_index112 .type bad_index,%function113 .thumb_func114bad_index:115 .fnstart116 .personalityindex 42117 .fnend118 119@ CHECK: error: personality routine index should be in range [0-3]120@ CHECK: .personalityindex 42121@ CHECK: ^122 123