2017-12-15 17:47:01 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+f -riscv-no-aliases \
|
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
|
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+f \
|
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
[RISCV] Support llvm-objdump -M no-aliases and -M numeric
Summary:
Now that llvm-objdump allows target-specific options, we match the
`no-aliases` and `numeric` options for RISC-V, as supported by GNU objdump.
This is done by overriding the variables used for the command-line options, so
that the command-line options are still supported.
This patch updates all tests using `llvm-objdump -riscv-no-aliases` to use
`llvm-objdump -M no-aliases`.
Reviewers: luismarques, asb
Reviewed By: luismarques, asb
Subscribers: pzheng, hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66139
llvm-svn: 371534
2019-09-11 00:24:03 +08:00
|
|
|
# RUN: | llvm-objdump -d -mattr=+f -M no-aliases - \
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
|
|
|
|
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
## Aliases which omit the rounding mode.
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
# CHECK-INST: fcvt.l.s a0, ft0, dyn
|
|
|
|
# CHECK-ALIAS: fcvt.l.s a0, ft0{{[[:space:]]}}
|
|
|
|
fcvt.l.s a0, ft0
|
|
|
|
# CHECK-INST: fcvt.lu.s a1, ft1, dyn
|
|
|
|
# CHECK-ALIAS: fcvt.lu.s a1, ft1{{[[:space:]]}}
|
|
|
|
fcvt.lu.s a1, ft1
|
|
|
|
# CHECK-INST: fcvt.s.l ft2, a2, dyn
|
|
|
|
# CHECK-ALIAS: fcvt.s.l ft2, a2{{[[:space:]]}}
|
|
|
|
fcvt.s.l ft2, a2
|
|
|
|
# CHECK-INST: fcvt.s.lu ft3, a3, dyn
|
|
|
|
# CHECK-ALIAS: fcvt.s.lu ft3, a3{{[[:space:]]}}
|
|
|
|
fcvt.s.lu ft3, a3
|