[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / cpload-bad.s
blob803610af922ff6dceb60576e6647b21a7d545026
1 # RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
2 # RUN: FileCheck %s < %t1 -check-prefix=ASM
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
11 .set nomips16
12 .set reorder
13 .cpload $25
14 # ASM: :[[@LINE-1]]:9: warning: .cpload should be inside a noreorder section
16 .set noreorder
17 .cpload $32
18 # ASM: :[[@LINE-1]]:17: error: invalid register
20 .cpload $foo
21 # ASM: :[[@LINE-1]]:17: error: expected register containing function address
23 .cpload bar
24 # ASM: :[[@LINE-1]]:17: error: expected register containing function address
26 .cpload $25 foobar
27 # ASM: :[[@LINE-1]]:21: error: unexpected token, expected end of statement