Skip to content

[X86] Align f128 to 16 bytes when passing on x86-32 #138092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions llvm/lib/Target/X86/X86CallingConv.td
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,9 @@ def CC_X86_32_Common : CallingConv<[
// Long doubles get slots whose size and alignment depends on the subtarget.
CCIfType<[f80], CCAssignToStack<0, 0>>,

// f128 get 16-byte slots that are 16-byte aligned.
CCIfType<[f128], CCAssignToStack<16, 16>>,

// Boolean vectors of AVX-512 are passed in SIMD registers.
// The call from AVX to AVX-512 function should work,
// since the boolean types in AVX/AVX2 are promoted by default.
Expand Down