1 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t 2 @ RUN: FileCheck --check-prefix=CHECK < %t %s 3 4 @ Check the diagnostics for .pad directive. 5 6 7 .syntax unified 8 .text 9 10 @------------------------------------------------------------------------------- 11 @ TEST1: .pad before .fnstart 12 @------------------------------------------------------------------------------- 13 .globl func1 14 .align 2 15 .type func1,%function 16 .pad #0 17 @ CHECK: error: .fnstart must precede .pad directive 18 @ CHECK: .pad #0 19 @ CHECK: ^ 20 .fnstart 21 func1: 22 .fnend 23 24 25 26 @------------------------------------------------------------------------------- 27 @ TEST2: .pad after .handlerdata 28 @------------------------------------------------------------------------------- 29 .globl func2 30 .align 2 31 .type func2,%function 32 .fnstart 33 func2: 34 .handlerdata 35 .pad #0 36 @ CHECK: error: .pad must precede .handlerdata directive 37 @ CHECK: .pad #0 38 @ CHECK: ^ 39 .fnend 40