With the addition of disassembler now we can do instructions 'round-trip' test that assembles `.s` to obj with `llvm-mc` and disassembles it with `llvm-objdump` to check instruction mnemonics. Reviewed By: xen0n, MaskRay Differential Revision: https://reviews.llvm.org/D120477
11 lines
328 B
ArmAsm
11 lines
328 B
ArmAsm
# Test that disassembler rejects data smaller than 4 bytes.
|
|
|
|
# RUN: llvm-mc --filetype=obj --triple=loongarch32 < %s \
|
|
# RUN: | llvm-objdump -d - | FileCheck %s
|
|
# RUN: llvm-mc --filetype=obj --triple=loongarch64 < %s \
|
|
# RUN: | llvm-objdump -d - | FileCheck %s
|
|
|
|
# CHECK: 11 <unknown>
|
|
# CHECK: 22 <unknown>
|
|
.2byte 0x2211
|