1 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
2 @ RUN: FileCheck --check-prefix=CHECK < %t %s
4 @ Check the diagnostics for .save directive
6 @ .save directive should always come after .fnstart directive and
7 @ before .handlerdata directive.
12 @-------------------------------------------------------------------------------
13 @ TEST1: .save before .fnstart
14 @-------------------------------------------------------------------------------
18 .save {r4, r5, r6, r7}
19 @ CHECK: error: .fnstart must precede .save or .vsave directives
20 @ CHECK: .save {r4, r5, r6, r7}
28 @-------------------------------------------------------------------------------
29 @ TEST2: .save after .handlerdata
30 @-------------------------------------------------------------------------------
37 .save {r4, r5, r6, r7}
38 @ CHECK: error: .save or .vsave must precede .handlerdata directive
39 @ CHECK: .save {r4, r5, r6, r7}