[llvm-commits] [PATCH] Test NEON code generation and calling convention

Sandeep Patel deeppatel1987 at gmail.com
Wed May 19 09:51:22 PDT 2010


On Wed, May 19, 2010 at 4:05 PM, Evan Cheng <evan.cheng at apple.com> wrote:
>
> On May 17, 2010, at 8:50 AM, Edmund Grimley-Evans wrote:
>
>> Could this file (vadd2.ll) be added in test/CodeGen/ARM/?
>
> Sure, you can commit it. Do you have more of these unit tests? It would be nice if there is a complete set rather than just adding tests only when they break.
>
>>
>> It broke in r103411 and was fixed again in r103854. It would be nice
>> to keep it working.
>>
>> I'm not sure what if any official rules govern how vector quantities
>> should be passed as arguments and returned. It appears that vectors of
>> less than 64 bits (such as the <2 x i8> in the first example in
>> vadd2.ll) currently get passed in R0-R3 rather than Q0-Q3, which leads
>> to some ugly code. Is this a bug or a feature?
>
> I think that's due to the Darwin ABI?

There's really no coverage in AAPCS of short vectors like this, nor
are they generated by Clang or llvm-gcc.

deep



More information about the llvm-commits mailing list