2019-02-21 22:09:34 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+f -riscv-no-aliases \
|
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+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 -mattr=+c,+f -M no-aliases -d - \
|
2019-02-21 22:09:34 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
|
|
|
|
|
|
|
# CHECK-EXPAND: c.flw fs0, 0(s1)
|
|
|
|
c.flw f8, (x9)
|
|
|
|
# CHECK-EXPAND: c.fsw fs0, 0(s1)
|
|
|
|
c.fsw f8, (x9)
|
|
|
|
# CHECK-EXPAND: c.flwsp fs0, 0(sp)
|
|
|
|
c.flwsp f8, (x2)
|
|
|
|
# CHECK-EXPAND: c.fswsp fs0, 0(sp)
|
|
|
|
c.fswsp f8, (x2)
|