[cfe-commits] r145574 - in /cfe/trunk: lib/CodeGen/CGExpr.cpp lib/CodeGen/TargetInfo.cpp lib/CodeGen/TargetInfo.h test/CodeGen/x86_64-arguments.c

Eli Friedman eli.friedman at gmail.com
Wed Nov 30 22:05:38 PST 2011


On Wed, Nov 30, 2011 at 9:40 PM, John McCall <rjmccall at apple.com> wrote:
> On Nov 30, 2011, at 8:53 PM, Eli Friedman wrote:
>> Author: efriedma
>> Date: Wed Nov 30 22:53:19 2011
>> New Revision: 145574
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=145574&view=rev
>> Log:
>> Don't use a varargs convention for calls unprototyped functions where one of the arguments is an AVX vector.
>
> Why not?  Does the backend just not correctly handle passing AVX vectors through varargs yet?

Passing an AVX vector through varargs forces it onto the stack, as
opposed to the normal convention which passes it in a YMM register.
Therefore, without this fix, we'll generate wrong code for the given
testcase.

-Eli




More information about the cfe-commits mailing list