[PATCH] D125444: [M68k] Add MC support for link/unlk

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 09:18:15 PDT 2022


myhsu added a comment.

Thank you for working on these instructions. I will recommend to add codegen support in this patch as well.



================
Comment at: llvm/lib/Target/M68k/M68kInstrData.td:444
+
+def LINK16 : MxInst<(outs MxARD16:$dst), (ins Mxi16imm:$disp), "link.w\t$dst, $disp", []> {
+  let Inst = (ascend
----------------
According to https://m680x0.github.io/ref/integer-instructions.html#pfd7 , LINK pushes register onto the stack, so I think the address register should be the input.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125444



More information about the llvm-commits mailing list