[llvm-commits] XOP Intrinsics patch
Craig Topper
craig.topper at gmail.com
Tue Jan 3 10:17:49 PST 2012
Adding some testcases that use the load patterns would probably be good
too. I've been fixing a lot of these sort of patterns lately because they
didn't understand the integer promotion.
~Craig
On Tue, Jan 3, 2012 at 10:14 AM, Craig Topper <craig.topper at gmail.com>wrote:
> All integer vector loads in patterns need to be memopv2i64(!28-bit) or
> memopv4i64(256-bit) and bitcasted to the correct type because all integer
> vector loads are promoted to v2i64 or v4i64. So for instance
>
> +def : Pat<(int_x86_xop_vphsubwd (alignedloadv8i16 addr:$src1)),
> + (VPHSUBWDrm addr:$src1)>;
>
> Needs to be
>
> +def : Pat<(int_x86_xop_vphsubwd (bc_v8i16 (memopv2i64 addr:$src1))),
> + (VPHSUBWDrm addr:$src1)>;
>
> ~Craig
>
> On Tue, Jan 3, 2012 at 8:12 AM, Jan Sjodin <jan_sjodin at yahoo.com> wrote:
>
>> This patch adds XOP intrinsics (including tests). Ok to commit?
>>
>> - Jan
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>>
>
>
> --
> ~Craig
>
--
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120103/c0729efb/attachment.html>
More information about the llvm-commits
mailing list