[PATCH] D132285: [LoongArch] Implement ABI lowering

Xi Ruoyao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 20 02:16:36 PDT 2022


xry111 added a comment.

Are cases like

  struct x { double a; __int128 : 0; double b;};
  double f(struct x x) { return x.a + x.b; }

handled properly?  AFAIK RISC-V clang currently does not handle it correctly:

https://godbolt.org/z/rvM99zbqc (GCC handles it properly)
https://godbolt.org/z/sWY5vs5ce (Clang does not handle it properly)

Note that we rectified the ABI to match the behavior of RISC-V GCC deliberately (https://gcc.gnu.org/r12-8294) but I didn't rewrite the document because the behavior is not easy to describe with my poor English.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132285



More information about the cfe-commits mailing list