-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SystemZ] Use VT (not ArgVT) for SlotVT in LowerCall(). (#82475)
When an integer argument is promoted and *not* split (like i72 -> i128 on a new machine with vector support), the SlotVT should be i128, which is stored in VT - not ArgVT. Fixes #81417 (cherry picked from commit 9c0e45d)
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; RUN: llc %s -o - -mtriple=s390x-linux-gnu -mcpu=z16 -print-after=finalize-isel 2>&1 | FileCheck %s | ||
; | ||
; Test that the correct space is allocated for the outgoing stack argument. | ||
|
||
declare void @bar(i72 %Arg); | ||
|
||
define void @foo() { | ||
; CHECK-LABEL: # Machine code for function foo: IsSSA, TracksLiveness | ||
; CHECK-NEXT: Frame Objects: | ||
; CHECK-NEXT: fi#0: size=1, align=2, at location [SP] | ||
; CHECK-NEXT: fi#1: size=16, align=8, at location [SP] | ||
|
||
; CHECK-LABEL: foo: | ||
; CHECK: aghi %r15, -184 | ||
%1 = alloca i8, align 2 | ||
tail call fastcc void @bar(i72 2097168) | ||
ret void | ||
} |