diff options
| author | Shiva Chen <shiva0217@gmail.com> | 2018-02-02 06:01:02 +0000 |
|---|---|---|
| committer | Shiva Chen <shiva0217@gmail.com> | 2018-02-02 06:01:02 +0000 |
| commit | 53489ada12e9e27a4863ad96adf7a64edf16eef3 (patch) | |
| tree | 496f699a1fafb80029f722cd252e744581f72b71 /llvm/test/MC/RISCV/rv32c-valid.s | |
| parent | 76c5ce518493669e23c73c02e616b4a5ca46ef63 (diff) | |
| download | bcm5719-llvm-53489ada12e9e27a4863ad96adf7a64edf16eef3.tar.gz bcm5719-llvm-53489ada12e9e27a4863ad96adf7a64edf16eef3.zip | |
[RISCV] Add ELFObjectFileBase::getRISCVFeatures let llvm-objdump could get RISCV target feature
llvm-objdump could get C feature by ELF::EF_RISCV_RVC e_flag,
so then we don't have to add -mattr=+c on the command line.
Differential Revision: https://reviews.llvm.org/D42629
llvm-svn: 324058
Diffstat (limited to 'llvm/test/MC/RISCV/rv32c-valid.s')
| -rw-r--r-- | llvm/test/MC/RISCV/rv32c-valid.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/RISCV/rv32c-valid.s b/llvm/test/MC/RISCV/rv32c-valid.s index a58959dd398..029dbdeaaae 100644 --- a/llvm/test/MC/RISCV/rv32c-valid.s +++ b/llvm/test/MC/RISCV/rv32c-valid.s @@ -3,10 +3,10 @@ # RUN: llvm-mc -triple=riscv64 -mattr=+c -riscv-no-aliases -show-encoding < %s \ # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \ -# RUN: | llvm-objdump -mattr=+c -riscv-no-aliases -d - \ +# RUN: | llvm-objdump -riscv-no-aliases -d - \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c < %s \ -# RUN: | llvm-objdump -mattr=+c -riscv-no-aliases -d - \ +# RUN: | llvm-objdump -riscv-no-aliases -d - \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # TODO: more exhaustive testing of immediate encoding. |

