2021-05-29 22:11:37 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv32 -mattr=+c -riscv-no-aliases \
|
2019-02-21 22:09:34 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
2021-05-29 22:11:37 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+c -riscv-no-aliases \
|
2019-02-21 22:09:34 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %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 -M no-aliases -d - \
|
2019-02-21 22:09:34 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c < %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 -M no-aliases -d - \
|
2019-02-21 22:09:34 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
|
|
|
|
|
|
|
|
# CHECK-EXPAND: c.lw s0, 0(s1)
|
|
|
|
c.lw x8, (x9)
|
|
|
|
# CHECK-EXPAND: c.sw s0, 0(s1)
|
|
|
|
c.sw x8, (x9)
|
|
|
|
# CHECK-EXPAND: c.lwsp s0, 0(sp)
|
|
|
|
c.lwsp x8, (x2)
|
|
|
|
# CHECK-EXPAND: c.swsp s0, 0(sp)
|
|
|
|
c.swsp x8, (x2)
|