[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv32fc-aliases-valid.s
blob44e4153901d0cf9fdaec7f46d453ca0d78755a28
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+f -riscv-no-aliases \
2 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+f < %s \
4 # RUN: | llvm-objdump --mattr=+c,+f -M no-aliases -d - \
5 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
7 # CHECK-EXPAND: c.flw fs0, 0(s1)
8 c.flw f8, (x9)
9 # CHECK-EXPAND: c.fsw fs0, 0(s1)
10 c.fsw f8, (x9)
11 # CHECK-EXPAND: c.flwsp fs0, 0(sp)
12 c.flwsp f8, (x2)
13 # CHECK-EXPAND: c.fswsp fs0, 0(sp)
14 c.fswsp f8, (x2)