2021-05-29 16:11:37 +02:00
|
|
|
# RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -show-encoding \
|
2017-12-12 16:17:45 +01:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
|
2021-05-29 16:11:37 +02:00
|
|
|
# RUN: llvm-mc %s -triple=riscv64 -riscv-no-aliases -show-encoding \
|
2017-12-12 16:17:45 +01:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 < %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-10 18:24:03 +02:00
|
|
|
# RUN: | llvm-objdump -M no-aliases -d - \
|
2017-12-15 10:47:01 +01:00
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
2017-12-12 16:17:45 +01:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 < %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-10 18:24:03 +02:00
|
|
|
# RUN: | llvm-objdump -M no-aliases -d - \
|
2017-12-15 10:47:01 +01:00
|
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
2017-12-12 16:17:45 +01:00
|
|
|
|
|
|
|
# CHECK-INST: uret
|
|
|
|
# CHECK: encoding: [0x73,0x00,0x20,0x00]
|
|
|
|
uret
|
|
|
|
|
|
|
|
# CHECK-INST: sret
|
|
|
|
# CHECK: encoding: [0x73,0x00,0x20,0x10]
|
|
|
|
sret
|
|
|
|
|
|
|
|
# CHECK-INST: mret
|
|
|
|
# CHECK: encoding: [0x73,0x00,0x20,0x30]
|
|
|
|
mret
|
|
|
|
|
|
|
|
# CHECK-INST: wfi
|
|
|
|
# CHECK: encoding: [0x73,0x00,0x50,0x10]
|
|
|
|
wfi
|
|
|
|
|
|
|
|
# CHECK-INST: sfence.vma zero, zero
|
|
|
|
# CHECK: encoding: [0x73,0x00,0x00,0x12]
|
|
|
|
sfence.vma zero, zero
|
|
|
|
|
|
|
|
# CHECK-INST: sfence.vma a0, a1
|
|
|
|
# CHECK: encoding: [0x73,0x00,0xb5,0x12]
|
|
|
|
sfence.vma a0, a1
|