1# RUN: llvm-mc %s -triple=riscv32 -mattr=+d -riscv-no-aliases \ 2# RUN: | FileCheck -check-prefix=CHECK-INST %s 3# RUN: llvm-mc %s -triple=riscv32 -mattr=+d \ 4# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s 5# RUN: llvm-mc %s -triple=riscv64 -mattr=+d -riscv-no-aliases \ 6# RUN: | FileCheck -check-prefix=CHECK-INST %s 7# RUN: llvm-mc %s -triple=riscv64 -mattr=+d \ 8# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s 9# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+d < %s \ 10# RUN: | llvm-objdump -d -mattr=+d -riscv-no-aliases - \ 11# RUN: | FileCheck -check-prefix=CHECK-INST %s 12# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+d < %s \ 13# RUN: | llvm-objdump -d -mattr=+d - \ 14# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s 15# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+d < %s \ 16# RUN: | llvm-objdump -d -mattr=+d -riscv-no-aliases - \ 17# RUN: | FileCheck -check-prefix=CHECK-INST %s 18# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+d < %s \ 19# RUN: | llvm-objdump -d -mattr=+d - \ 20# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s 21 22##===----------------------------------------------------------------------===## 23## Assembler Pseudo Instructions (User-Level ISA, Version 2.2, Chapter 20) 24##===----------------------------------------------------------------------===## 25 26# TODO fld 27# TODO fsd 28 29# CHECK-INST: fsgnj.d ft0, ft1, ft1 30# CHECK-ALIAS: fmv.d ft0, ft1 31fmv.d f0, f1 32# CHECK-INST: fsgnjx.d ft1, ft2, ft2 33# CHECK-ALIAS: fabs.d ft1, ft2 34fabs.d f1, f2 35# CHECK-INST: fsgnjn.d ft2, ft3, ft3 36# CHECK-ALIAS: fneg.d ft2, ft3 37fneg.d f2, f3 38 39# CHECK-INST: flt.d tp, ft6, ft5 40# CHECK-ALIAS: flt.d tp, ft6, ft5 41fgt.d x4, f5, f6 42# CHECK-INST: fle.d t2, fs1, fs0 43# CHECK-ALIAS: fle.d t2, fs1, fs0 44fge.d x7, f8, f9 45 46##===----------------------------------------------------------------------===## 47## Aliases which omit the rounding mode. 48##===----------------------------------------------------------------------===## 49 50# CHECK-INST: fmadd.d fa0, fa1, fa2, fa3, dyn 51# CHECK-ALIAS: fmadd.d fa0, fa1, fa2, fa3{{[[:space:]]}} 52fmadd.d f10, f11, f12, f13 53# CHECK-INST: fmsub.d fa4, fa5, fa6, fa7, dyn 54# CHECK-ALIAS: fmsub.d fa4, fa5, fa6, fa7{{[[:space:]]}} 55fmsub.d f14, f15, f16, f17 56# CHECK-INST: fnmsub.d fs2, fs3, fs4, fs5, dyn 57# CHECK-ALIAS: fnmsub.d fs2, fs3, fs4, fs5{{[[:space:]]}} 58fnmsub.d f18, f19, f20, f21 59# CHECK-INST: fnmadd.d fs6, fs7, fs8, fs9, dyn 60# CHECK-ALIAS: fnmadd.d fs6, fs7, fs8, fs9{{[[:space:]]}} 61fnmadd.d f22, f23, f24, f25 62# CHECK-INST: fadd.d fs10, fs11, ft8, dyn 63# CHECK-ALIAS: fadd.d fs10, fs11, ft8{{[[:space:]]}} 64fadd.d f26, f27, f28 65# CHECK-INST: fsub.d ft9, ft10, ft11, dyn 66# CHECK-ALIAS: fsub.d ft9, ft10, ft11{{[[:space:]]}} 67fsub.d f29, f30, f31 68# CHECK-INST: fmul.d ft0, ft1, ft2, dyn 69# CHECK-ALIAS: fmul.d ft0, ft1, ft2{{[[:space:]]}} 70fmul.d ft0, ft1, ft2 71# CHECK-INST: fdiv.d ft3, ft4, ft5, dyn 72# CHECK-ALIAS: fdiv.d ft3, ft4, ft5{{[[:space:]]}} 73fdiv.d ft3, ft4, ft5 74# CHECK-INST: fsqrt.d ft6, ft7, dyn 75# CHECK-ALIAS: fsqrt.d ft6, ft7{{[[:space:]]}} 76fsqrt.d ft6, ft7 77# CHECK-INST: fcvt.s.d fs5, fs6, dyn 78# CHECK-ALIAS: fcvt.s.d fs5, fs6{{[[:space:]]}} 79fcvt.s.d fs5, fs6 80# CHECK-INST: fcvt.w.d a4, ft11, dyn 81# CHECK-ALIAS: fcvt.w.d a4, ft11{{[[:space:]]}} 82fcvt.w.d a4, ft11 83# CHECK-INST: fcvt.wu.d a5, ft10, dyn 84# CHECK-ALIAS: fcvt.wu.d a5, ft10{{[[:space:]]}} 85fcvt.wu.d a5, ft10 86