[PATCH] D105332: [M68k][GloballSel] Lower outgoing return values in IRTranslator

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 2 15:10:37 PDT 2021


myhsu added inline comments.


================
Comment at: llvm/test/CodeGen/M68k/GlobalISel/irtranslator-ret.ll:185
+  ; CHECK:   [[G_TRUNC1:%[0-9]+]]:_(s8) = G_TRUNC [[G_LOAD1]](s32)
+  ; CHECK:   $bd0 = COPY [[G_TRUNC1]](s8)
+  ; CHECK:   RTS implicit $bd0
----------------
myhsu wrote:
> gandhi21299 wrote:
> > The name of the register storing the return value, ie $bd0, could be turned into a regex. Please do the same for the tests below.
> I don't think so...according to M68k ABI it only uses one (and two in some cases) for return values
*only uses one (or two) register(s)


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

https://reviews.llvm.org/D105332



More information about the llvm-commits mailing list