[clang] [clang][Sparc] Pass packed structs and unions in integer registers on SPARC64 (PR #246226)

Stian Halseth via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 27 02:37:57 PST 2026


shalseth wrote:

> @shalseth

Tested on sparc64 (T7-1, M7 CPU). The two new tests pass, as well as clang's other SPARC tests in clang/test/CodeGen. 

I also built a caller and a callee with every GCC 16/clang combination. Unions and packed structs, in C and C++, now work in both directions, they failed before. -fclang-abi-compat=23 brings back the old behaviour.

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


More information about the cfe-commits mailing list