blob: 5f7ac56314cd632b23ec07a8f42586371d24b5d4 [file] [log] [blame]
Logan Chien4ea23b52013-05-10 16:17:24 +00001@ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
Mandeep Singh Grang029a0562016-04-19 23:51:52 +00002@ RUN: FileCheck < %t %s
Logan Chien4ea23b52013-05-10 16:17:24 +00003
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
21func1:
22 .fnend
23
24
25
26@-------------------------------------------------------------------------------
27@ TEST2: .pad after .handlerdata
28@-------------------------------------------------------------------------------
29 .globl func2
30 .align 2
31 .type func2,%function
32 .fnstart
33func2:
34 .handlerdata
35 .pad #0
36@ CHECK: error: .pad must precede .handlerdata directive
37@ CHECK: .pad #0
38@ CHECK: ^
39 .fnend