Skip to content

Commit

Permalink
Auto merge of #134290 - tgross35:windows-i128-callconv, r=bjorn3,wesl…
Browse files Browse the repository at this point in the history
…eywiser

Windows x86: Change i128 to return via the vector ABI

Clang and GCC both return `i128` in xmm0 on windows-msvc and windows-gnu. Currently, Rust returns the type on the stack. Add a calling convention adjustment so we also return scalar `i128`s using the vector ABI, which makes our `i128` compatible with C.

In the future, Clang may change to return `i128` on the stack for its `-msvc` targets (more at [1]). If this happens, the change here will need to be adjusted to only affect MinGW.

Link: rust-lang/rust#134288 (does not fix) [1]

try-job: x86_64-msvc
try-job: x86_64-msvc-ext1
try-job: x86_64-mingw-1
try-job: x86_64-mingw-2
  • Loading branch information
bors committed Jan 28, 2025
2 parents 3c9f396 + 36893c3 commit 7066f1a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 7066f1a

Please sign in to comment.