[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rv64f-aliases-valid.s
blob488d52fbb7f90a13cdf3e39d19801aedcf8462e1
1 # RUN: llvm-mc %s -triple=riscv64 -mattr=+f -riscv-no-aliases \
2 # RUN: | FileCheck -check-prefix=CHECK-INST %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+f \
4 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
5 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
6 # RUN: | llvm-objdump -d --mattr=+f -M no-aliases - \
7 # RUN: | FileCheck -check-prefix=CHECK-INST %s
8 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
9 # RUN: | llvm-objdump -d --mattr=+f - \
10 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
12 ##===----------------------------------------------------------------------===##
13 ## Aliases which omit the rounding mode.
14 ##===----------------------------------------------------------------------===##
16 # CHECK-INST: fcvt.l.s a0, ft0, dyn
17 # CHECK-ALIAS: fcvt.l.s a0, ft0{{[[:space:]]}}
18 fcvt.l.s a0, ft0
19 # CHECK-INST: fcvt.lu.s a1, ft1, dyn
20 # CHECK-ALIAS: fcvt.lu.s a1, ft1{{[[:space:]]}}
21 fcvt.lu.s a1, ft1
22 # CHECK-INST: fcvt.s.l ft2, a2, dyn
23 # CHECK-ALIAS: fcvt.s.l ft2, a2{{[[:space:]]}}
24 fcvt.s.l ft2, a2
25 # CHECK-INST: fcvt.s.lu ft3, a3, dyn
26 # CHECK-ALIAS: fcvt.s.lu ft3, a3{{[[:space:]]}}
27 fcvt.s.lu ft3, a3