Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rvzdinx-aliases-valid.s
blob3262c88e92816bf140cbfc407181b2bc258ca718
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zdinx -riscv-no-aliases \
2 # RUN: | FileCheck -check-prefix=CHECK-INST %s
3 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zdinx \
4 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
5 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zdinx -riscv-no-aliases \
6 # RUN: | FileCheck -check-prefix=CHECK-INST %s
7 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zdinx \
8 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
9 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zdinx %s \
10 # RUN: | llvm-objdump -d --mattr=+zdinx -M no-aliases - \
11 # RUN: | FileCheck -check-prefix=CHECK-INST %s
12 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zdinx %s \
13 # RUN: | llvm-objdump -d --mattr=+zdinx - \
14 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
15 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zdinx %s \
16 # RUN: | llvm-objdump -d --mattr=+zdinx -M no-aliases - \
17 # RUN: | FileCheck -check-prefix=CHECK-INST %s
18 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zdinx %s \
19 # RUN: | llvm-objdump -d --mattr=+zdinx - \
20 # RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
22 ##===----------------------------------------------------------------------===##
23 ## Aliases which omit the rounding mode.
24 ##===----------------------------------------------------------------------===##
26 # CHECK-INST: fmadd.d a0, a2, a4, a6, dyn
27 # CHECK-ALIAS: fmadd.d a0, a2, a4, a6
28 fmadd.d x10, x12, x14, x16
29 # CHECK-INST: fmsub.d a0, a2, a4, a6, dyn
30 # CHECK-ALIAS: fmsub.d a0, a2, a4, a6
31 fmsub.d x10, x12, x14, x16
32 # CHECK-INST: fnmsub.d a0, a2, a4, a6, dyn
33 # CHECK-ALIAS: fnmsub.d a0, a2, a4, a6
34 fnmsub.d x10, x12, x14, x16
35 # CHECK-INST: fnmadd.d a0, a2, a4, a6, dyn
36 # CHECK-ALIAS: fnmadd.d a0, a2, a4, a6
37 fnmadd.d x10, x12, x14, x16
38 # CHECK-INST: fadd.d a0, a2, a4, dyn
39 # CHECK-ALIAS: fadd.d a0, a2, a4
40 fadd.d x10, x12, x14
41 # CHECK-INST: fsub.d a0, a2, a4, dyn
42 # CHECK-ALIAS: fsub.d a0, a2, a4
43 fsub.d x10, x12, x14
44 # CHECK-INST: fmul.d a0, a2, a4, dyn
45 # CHECK-ALIAS: fmul.d a0, a2, a4
46 fmul.d x10, x12, x14
47 # CHECK-INST: fdiv.d a0, a2, a4, dyn
48 # CHECK-ALIAS: fdiv.d a0, a2, a4
49 fdiv.d x10, x12, x14