diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-09-17 14:36:28 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-09-17 14:36:28 +0000 |
commit | a1c2bb91ad63986c7bfb3fa2b051cb21c05cb9b3 (patch) | |
tree | 23dd3a17790223a14e2b06500c6063ce4cfc73b3 /test/MC | |
parent | 26132ea8ed7c58d447b7b7f25be7e9eea6de967d (diff) | |
download | llvm-a1c2bb91ad63986c7bfb3fa2b051cb21c05cb9b3.tar.gz |
[RISCV] Add support for disassembly
This Disassembly support allows for 'round-trip' testing, and rv32i-valid.s
has been updated appropriately.
Differential Revision: https://reviews.llvm.org/D23567
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/RISCV/rv32i-valid.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/RISCV/rv32i-valid.s b/test/MC/RISCV/rv32i-valid.s index 4c883e9a0ae..95d9da4bb51 100644 --- a/test/MC/RISCV/rv32i-valid.s +++ b/test/MC/RISCV/rv32i-valid.s @@ -2,6 +2,10 @@ # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s # RUN: llvm-mc %s -triple=riscv64 -show-encoding \ # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s +# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ +# RUN: | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s +# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ +# RUN: | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s # CHECK-INST: lui a0, 2 # CHECK: encoding: [0x37,0x25,0x00,0x00] |