1# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
2# RUN: FileCheck %s < %t1 -check-prefix=ASM
3
4        .text
5
6        .ent # ASM: :[[@LINE]]:14: error: expected identifier after .ent
7        .ent bar, # ASM: :[[@LINE]]:19: error: expected number after comma
8        .ent foo, bar # AMS: :[[@LINE]]:23: error: expected an absolute expression after comma
9        .ent foo, 5, bar # AMS: :[[@LINE]]:20: error: unexpected token, expected end of statement
10
11        .frame # ASM: :[[@LINE]]:16: error: expected stack register
12        .frame bar # ASM: :[[@LINE]]:16: error: expected stack register
13        .frame $f1, 8, # ASM: :[[@LINE]]:16: error: expected general purpose register
14        .frame $sp # ASM: :[[@LINE]]:20: error: unexpected token, expected comma
15        .frame $sp, # ASM: :[[@LINE]]:21: error: expected frame size value
16        .frame $sp, bar # ASM: :[[@LINE]]:25: error: frame size not an absolute expression
17        .frame $sp, 8 # ASM: :[[@LINE]]:23: error: unexpected token, expected comma
18        .frame $sp, 8, # ASM: :[[@LINE]]:24: error: expected return register
19        .frame $sp, 8, $f1 # ASM: :[[@LINE]]:24: error: expected general purpose register
20        .frame $sp, 8, $ra, foo # ASM: :[[@LINE]]:27: error: unexpected token, expected end of statement
21
22        .mask  # ASM: :[[@LINE]]:16: error: expected bitmask value
23        .mask foo # ASM: :[[@LINE]]:19: error: bitmask not an absolute expression
24        .mask 0x80000000 # ASM: :[[@LINE]]:26: error: unexpected token, expected comma
25        .mask 0x80000000, # ASM: :[[@LINE]]:27: error: expected frame offset value
26        .mask 0x80000000, foo # ASM: :[[@LINE]]:31: error: frame offset not an absolute expression
27        .mask 0x80000000, -4, bar # ASM: :[[@LINE]]:29: error: unexpected token, expected end of statement
28
29        .fmask  # ASM: :[[@LINE]]:17: error: expected bitmask value
30        .fmask foo # ASM: :[[@LINE]]:20: error: bitmask not an absolute expression
31        .fmask 0x80000000 # ASM: :[[@LINE]]:27: error: unexpected token, expected comma
32        .fmask 0x80000000, # ASM: :[[@LINE]]:28: error: expected frame offset value
33        .fmask 0x80000000, foo # ASM: :[[@LINE]]:32: error: frame offset not an absolute expression
34        .fmask 0x80000000, -4, bar # ASM: :[[@LINE]]:30: error: unexpected token, expected end of statement
35
36        .end # ASM: :[[@LINE]]:14: error: expected identifier after .end
37        .ent _local_foo_bar
38        .end _local_foo_bar, foo # ASM: :[[@LINE]]:28: error: unexpected token, expected end of statement
39        .end _local_foo_bar
40        .end _local_foo # ASM: :[[@LINE]]:25: error: .end used without .ent
41        .ent _local_foo, 2
42        .end _local_foo_bar # ASM: :[[@LINE]]:29: error: .end symbol does not match .ent symbol
43