[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / set-mips0-directive.s
blob5cb75bb90ea11568f37a0c8c513010105a593659
1 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 | \
2 # RUN: FileCheck %s
4 .text
5 rotr $7, $7, 22
7 .set mips32r6
8 mod $2, $4, $6
9 .set mips0
10 rotr $2, $2, 15
12 .set mips3
13 dadd $4, $4, $4
14 .set mips0
15 rotr $3, $3, 19
17 # CHECK: rotr $7, $7, 22
19 # CHECK: .set mips32r6
20 # CHECK: mod $2, $4, $6
21 # CHECK: .set mips0
22 # CHECK: rotr $2, $2, 15
24 # CHECK: .set mips3
25 # CHECK: dadd $4, $4, $4
26 # CHECK: .set mips0
27 # CHECK: rotr $3, $3, 19