[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rvdc-aliases-valid.s
bloba1e0cc278776e9c961a635fe0a7ea46ad69e651b
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+d -riscv-no-aliases \
2 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+c,+d -riscv-no-aliases \
4 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
5 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+d < %s \
6 # RUN: | llvm-objdump --mattr=+c,+d -M no-aliases -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
8 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c,+d < %s \
9 # RUN: | llvm-objdump --mattr=+c,+d -M no-aliases -d - \
10 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
12 c.fld f8, (x9)
13 # CHECK-EXPAND: c.fsd fs0, 0(s1)
14 c.fsd f8, (x9)
15 # CHECK-EXPAND: c.fldsp fs0, 0(sp)
16 c.fldsp f8, (x2)
17 # CHECK-EXPAND: c.fsdsp fs0, 0(sp)
18 c.fsdsp f8, (x2)