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

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 23:14:28 PDT 2022


0x59616e added inline comments.


================
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
----------------
myhsu wrote:
> 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.
It does read and write to the register. So I guess it should be both input and output ?




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