[PATCH] D75126: [AIX] Extend integer arguments to register width when passed in stack memory.

Chris Bowler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 07:52:11 PST 2020


cebowleratibm marked 2 inline comments as done.
cebowleratibm added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:6808
 
+  if (ValVT.isInteger() && (ValVT.getSizeInBits() > RegVT.getSizeInBits()))
+    report_fatal_error("Unexpected argument exceeds word size.");
----------------
sfertile wrote:
> For 32-bit codegen  we legalize i64s by breaking them into 2 i32s. Is i128  handled similarly, or is it a legal type which this error is trying to catch?
i128 is handled similarly to i64.  In PPC64 it will take 2 registers and in PPC32 it will take 4 registers.

The code was not designed to handle this case so I put it in as a defensive measure.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75126





More information about the llvm-commits mailing list