[PATCH] D143316: [m68k] Implement absolution long addressing mode for ADDA instruction

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 3 04:10:32 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG40d89de4c54e: [m68k] Implement absolution long addressing mode for ADDA instruction (authored by 0x59616e).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143316/new/

https://reviews.llvm.org/D143316

Files:
  llvm/lib/Target/M68k/M68kInstrArithmetic.td
  llvm/test/MC/Disassembler/M68k/arithmetic.txt
  llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s


Index: llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
===================================================================
--- llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
+++ llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
@@ -67,3 +67,6 @@
 ; CHECK:      adda.l  (%a1), %a3
 ; CHECK-SAME: encoding: [0xd7,0xd1]
 adda.l	(%a1), %a3
+; CHECK: adda.l dst, %a0
+; CHECK-SAME: encoding: [0xd1,0xf9,A,A,A,A]
+adda.l dst,%a0
Index: llvm/test/MC/Disassembler/M68k/arithmetic.txt
===================================================================
--- llvm/test/MC/Disassembler/M68k/arithmetic.txt
+++ llvm/test/MC/Disassembler/M68k/arithmetic.txt
@@ -214,3 +214,6 @@
 
 # CHECK: or.l %d1, %d6
 0x8c 0x81
+
+# CHECK: adda.l  $f0001, %a0
+0xd1 0xf9 0x00 0x0f 0x00 0x01
Index: llvm/lib/Target/M68k/M68kInstrArithmetic.td
===================================================================
--- llvm/lib/Target/M68k/M68kInstrArithmetic.td
+++ llvm/lib/Target/M68k/M68kInstrArithmetic.td
@@ -293,6 +293,8 @@
                                   CMD, MxEncAddrMode_p<"opd">>;
   def NAME#"32aj" : MxBiArOp_R_RM<MN, NODE, MxType32a, MxType32.JOp, MxType32.JPat,
                                   CMD, MxEncAddrMode_j<"opd">>;
+  def NAME#"32ab" : MxBiArOp_R_RM<MN, NODE, MxType32a, MxType32.BOp, MxType32.BPat,
+                                  CMD, MxEncAddrMode_abs<"opd", true>>;
   def NAME#"32ai" : MxBiArOp_R_RI_xEA<MN, NODE, MxType32a, CMD>;
 
   def NAME#"32ar" : MxBiArOp_R_RR_xEA<MN, NODE, MxType32a, MxType32r, CMD>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143316.528092.patch
Type: text/x-patch
Size: 1516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230603/d1e13c75/attachment.bin>


More information about the llvm-commits mailing list