[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / micromips-sc-expansion.s
blob1bafc3a55ea81d0c25551411ab158daae2830fc5
1 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r2 -mattr=+micromips %s -o - \
2 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MICROMIPSR2
3 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r6 -mattr=+micromips %s -o - \
4 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MICROMIPSR6
6 # MICROMIPSR2: 61 83 b0 00 sc $12, 0($3)
7 # MICROMIPSR6: 61 83 b0 00 sc $12, 0($3)
8 sc $12, 0($3)
10 # MICROMIPSR2: 61 83 b0 04 sc $12, 4($3)
11 # MICROMIPSR6: 61 83 b0 04 sc $12, 4($3)
12 sc $12, 4($3)
14 # MICROMIPSR2: 41 a1 00 00 lui $1, 0
15 # MICROMIPSR2: R_MICROMIPS_HI16 symbol
16 # MICROMIPSR2: 61 81 b0 00 sc $12, 0($1)
17 # MICROMIPSR2: R_MICROMIPS_LO16 symbol
19 # MICROMIPSR6: 3c 01 00 00 lh $zero, 0($1)
20 # MICROMIPSR6: R_MICROMIPS_HI16 symbol
21 # MICROMIPSR6: 61 81 b0 00 sc $12, 0($1)
22 # MICROMIPSR6: R_MICROMIPS_LO16 symbol
23 sc $12, symbol
25 # MICROMIPSR2: 41 a1 00 00 lui $1, 0
26 # MICROMIPSR2: R_MICROMIPS_HI16 symbol
27 # MICROMIPSR2: 61 81 b0 08 sc $12, 8($1)
28 # MICROMIPSR2: R_MICROMIPS_LO16 symbol
30 # MICROMIPSR6: 3c 01 00 00 lh $zero, 0($1)
31 # MICROMIPSR6: R_MICROMIPS_HI16 symbol
32 # MICROMIPSR6: 61 81 b0 08 sc $12, 8($1)
33 # MICROMIPSR6: R_MICROMIPS_LO16 symbol
34 sc $12, symbol + 8