[llvm] [SystemZ] XPLINK64: emit narrow sign/zero-extend instructions for sub-i32 formal args (PR #206833)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 08:13:07 PDT 2026


================
@@ -242,9 +243,9 @@ def CC_SystemZ_XPLINK64 : CallingConv<[
   // If i128 is not legal, such values are already split into two i64 here,
   // so we have to use a custom handler.
   CCIfType<[i64], CCCustom<"CC_SystemZ_I128Indirect">>,
-  // The first 3 integer arguments are passed in registers R1D-R3D.
-  // The rest will be passed in the user area. The address offset of the user
-  // area can be found in register R4D.
+  // The first 3 integer arguments are passed in registers R1-R3.
+  // The rest will be passed in the user area.
+  CCIfType<[i32], CCAssignToRegAndStack<[R1L, R2L, R3L], 8, 8>>,
----------------
uweigand wrote:

This should no longer be necessary - we should never get `i32` at this point, right?

https://github.com/llvm/llvm-project/pull/206833


More information about the llvm-commits mailing list