X86: produce more friendly errors during MachO relocation handling
[oota-llvm.git] / test / MC / Mips / cpload-bad.s
1 # RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
2 # RUN: FileCheck %s < %t1 -check-prefix=ASM
3
4         .text
5         .option pic2
6         .set noreorder
7         .set mips16
8         .cpload $25
9 # ASM: :[[@LINE-1]]:17: error: .cpload is not supported in Mips16 mode
10
11         .set nomips16
12         .set reorder
13         .cpload $25
14 # ASM: :[[@LINE-1]]:9: warning: .cpload should be inside a noreorder section
15
16         .set noreorder
17         .cpload $32
18 # ASM: :[[@LINE-1]]:17: error: invalid register
19
20         .cpload $foo
21 # ASM: :[[@LINE-1]]:17: error: expected register containing function address
22
23         .cpload bar
24 # ASM: :[[@LINE-1]]:17: error: expected register containing function address
25
26         .cpload $25 foobar
27 # ASM: :[[@LINE-1]]:21: error: unexpected token, expected end of statement