[llvm-commits] [PATCH, PowerPC] Fix PR13948 (passing structs containing single floating-point fields)

Bill Schmidt wschmidt at linux.vnet.ibm.com
Fri Oct 12 10:00:02 PDT 2012


This patch addresses PR13948.

For 64-bit PowerPC SVR4, an aggregate containing only one
floating-point field (float, double, or long double) must be passed in
a register as though just that field were present.  This patch
addresses the issue during Clang code generation by specifying in the
ABIArgInfo for the argument that the underlying type is passed
directly in a register.  The included test case verifies flat and
nested structs for the three data types.

Tested on powerpc64-unknown-linux-gnu with no new regressions.  Is
this ok to commit?

Thanks,
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: structonefloat-2012-10-12.patch
Type: text/x-patch
Size: 5798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121012/6e87442b/attachment.bin>


More information about the llvm-commits mailing list