[PATCH] D23567: [RISCV 9/10] Add support for disassembly

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 8 06:26:10 PDT 2016


asb added inline comments.


================
Comment at: test/MC/RISCV/rv32i-valid.s:3
 # RUN: llvm-mc %s -triple=riscv64 -show-encoding | FileCheck %s
+# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
+# RUN:     | llvm-objdump -d - | FileCheck -check-prefix=CHECK-DIS %s
----------------
jyknight wrote:
> Using the same file to test both directions seems like a nice method -- but strangely, almost unique amongst the tests for the backends.
> 
> I actually especially like the way it's done in test/MC/X86/mpx-encodings.s, where it uses the same CHECK: line for both the asm output of llvm-mc, and the output of llvm-objdump.
> 
> I'd suggest doing it that way, which would nicely resolve my comment in D23564 too.
I went ahead with the `CHECK-INST` approach I described in D23564.


https://reviews.llvm.org/D23567





More information about the llvm-commits mailing list