mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
3a6b6c93cc
Summary: Add LHM/SHM instructions. Add regression tests for them of asmparser, mccodeemitter, and disassembler. In order to add those instructions, add new decode functions to disassembler, and add new print functions to instprinter. Differential Revision: https://reviews.llvm.org/D81535
21 lines
733 B
ArmAsm
21 lines
733 B
ArmAsm
# RUN: llvm-mc -triple=ve --show-encoding < %s \
|
|
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
|
|
# RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \
|
|
# RUN: | FileCheck %s --check-prefixes=CHECK-INST
|
|
|
|
# CHECK-INST: lhm.l %s20, 20(%s11)
|
|
# CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0x03,0x14,0x21]
|
|
lhm.l %s20, 20(%s11)
|
|
|
|
# CHECK-INST: lhm.w %s20, 8192()
|
|
# CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x00,0x02,0x14,0x21]
|
|
lhm.w %s20, 8192()
|
|
|
|
# CHECK-INST: lhm.h %s20, (%s11)
|
|
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x01,0x14,0x21]
|
|
lhm.h %s20, (%s11)
|
|
|
|
# CHECK-INST: lhm.b %s20, (%s11)
|
|
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x00,0x14,0x21]
|
|
lhm.b %s20, %s11
|