brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · 9eca164 Raw
107 lines · plain
1@ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t2@ RUN: FileCheck < %t %s3 4@ Check the diagnostics for .cantunwind, .handlerdata, and .personality5 6@ .cantunwind directive can't be used with .handlerdata directive nor7@ .personality directive.  This test case check for the diagnostics for8@ the conflicts.9 10 11        .syntax unified12        .text13 14@-------------------------------------------------------------------------------15@ TEST1: cantunwind + personality16@-------------------------------------------------------------------------------17        .globl  func118        .align  219        .type   func1,%function20        .fnstart21func1:22        .cantunwind23        .personality    __gxx_personality_v024@ CHECK: error: .personality can't be used with .cantunwind directive25@ CHECK:        .personality __gxx_personality_v026@ CHECK:        ^27@ CHECK: note: .cantunwind was specified here28@ CHECK:        .cantunwind29@ CHECK:        ^30        .fnend31 32 33 34@-------------------------------------------------------------------------------35@ TEST2: cantunwind + handlerdata36@-------------------------------------------------------------------------------37        .globl  func238        .align  239        .type   func2,%function40        .fnstart41func2:42        .cantunwind43        .handlerdata44@ CHECK: error: .handlerdata can't be used with .cantunwind directive45@ CHECK:        .handlerdata46@ CHECK:        ^47@ CHECK: note: .cantunwind was specified here48@ CHECK:        .cantunwind49@ CHECK:        ^50        .fnend51 52 53 54@-------------------------------------------------------------------------------55@ TEST3: personality + cantunwind56@-------------------------------------------------------------------------------57        .globl  func358        .align  259        .type   func3,%function60        .fnstart61func3:62        .personality    __gxx_personality_v063        .cantunwind64@ CHECK: error: .cantunwind can't be used with .personality directive65@ CHECK:        .cantunwind66@ CHECK:        ^67@ CHECK: note: .personality was specified here68@ CHECK:        .personality __gxx_personality_v069@ CHECK:        ^70        .fnend71 72 73 74@-------------------------------------------------------------------------------75@ TEST4: handlerdata + cantunwind76@-------------------------------------------------------------------------------77        .globl  func478        .align  279        .type   func4,%function80        .fnstart81func4:82        .handlerdata83        .cantunwind84@ CHECK: error: .cantunwind can't be used with .handlerdata directive85@ CHECK:        .cantunwind86@ CHECK:        ^87@ CHECK: note: .handlerdata was specified here88@ CHECK:        .handlerdata89@ CHECK:        ^90        .fnend91 92 93 94@-------------------------------------------------------------------------------95@ TEST5: cantunwind + fnstart96@-------------------------------------------------------------------------------97        .globl  func598        .align  299        .type   func5,%function100        .cantunwind101@ CHECK: error: .fnstart must precede .cantunwind directive102@ CHECK:        .cantunwind103@ CHECK:        ^104        .fnstart105func5:106        .fnend107