[clang] [llvm] [PowerPC][AIX] Specify correct ABI alignment for double (PR #144673)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 21 15:12:35 PST 2025


================
@@ -29,8 +29,8 @@
 %struct.anon = type <{ i32, double }>
 @astruct = global [1 x %struct.anon] [%struct.anon <{ i32 1, double 7.000000e+00 }>], align 1
 
-%struct.anon2 = type { double, i32 }
- at bstruct = global [1 x %struct.anon2] [%struct.anon2 { double 7.000000e+00 , i32 1}], align 8
+%struct.anon2 = type { double, i32, [4 x i8] }
----------------
lei137 wrote:

`clang/test/CodeGen/2007-05-07-PaddingElements.c` seem to be testing explicitly for this struct to not have this explicit padding.  It currently fails with my build.

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


More information about the llvm-commits mailing list