mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
75eff6e3b0
Some instructions have a fixed Z register and don't have an explicit register operand. This can be worked around by simply printing the operand directly if the particular register class is detected. The LPM and ELPM instructions also needed a custom decoder, which is also included in this patch. Differential Revision: https://reviews.llvm.org/D82088
15 lines
389 B
ArmAsm
15 lines
389 B
ArmAsm
; RUN: llvm-mc -triple avr -mattr=spm,spmx -show-encoding < %s | FileCheck %s
|
|
; RUN: llvm-mc -filetype=obj -triple avr -mattr=spm,spmx < %s | llvm-objdump -d --mattr=spm,spmx - | FileCheck -check-prefix=CHECK-INST %s
|
|
|
|
|
|
foo:
|
|
|
|
spm
|
|
spm Z+
|
|
|
|
; CHECK: spm ; encoding: [0xe8,0x95]
|
|
; CHECK: spm Z+ ; encoding: [0xf8,0x95]
|
|
|
|
; CHECK-INST: spm
|
|
; CHECK-INST: spm Z+
|