42 lines · plain
1@ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t2@ RUN: FileCheck < %t %s3 4@ Check the diagnostics for .save directive5 6@ .save directive should always come after .fnstart directive and7@ before .handlerdata directive.8 9 .syntax unified10 .text11 12@-------------------------------------------------------------------------------13@ TEST1: .save before .fnstart14@-------------------------------------------------------------------------------15 .globl func116 .align 217 .type func1,%function18 .save {r4, r5, r6, r7}19@ CHECK: error: .fnstart must precede .save or .vsave directives20@ CHECK: .save {r4, r5, r6, r7}21@ CHECK: ^22 .fnstart23func1:24 .fnend25 26 27 28@-------------------------------------------------------------------------------29@ TEST2: .save after .handlerdata30@-------------------------------------------------------------------------------31 .globl func232 .align 233 .type func2,%function34 .fnstart35func2:36 .handlerdata37 .save {r4, r5, r6, r7}38@ CHECK: error: .save or .vsave must precede .handlerdata directive39@ CHECK: .save {r4, r5, r6, r7}40@ CHECK: ^41 .fnend42