[PATCH][AVX512] Add intrinsics for Packed Absolute Value

Demikhovsky, Elena elena.demikhovsky at intel.com
Tue Dec 24 23:27:40 PST 2013


Hi Cameron,

I asked GCC people. This is their answer:
"
Built-ins are defined by compiler while intrinsics defined by Intel.
We need to support all the intrinsics with minimum built-ins count.
Introduction of non-masked variants will double built-in count and will add no new functionality.
That is why we model nonmask built-ins with mask ones.
"

You can add the following pattern and avoid extra reg dependencies.

def : Pat<(int_x86_avx512_mask_pabs_d_512 (v16i32 (IMPLICIT_DEF)), VR512:$src, (i16 -1)),
          (VPABSDrr VR512:$src)>;

-  Elena


-----Original Message-----
From: Cameron McInally [mailto:cameron.mcinally at nyu.edu] 
Sent: Tuesday, December 24, 2013 18:32
To: Demikhovsky, Elena
Cc: llvm-commits at cs.uiuc.edu
Subject: Re: [PATCH][AVX512] Add intrinsics for Packed Absolute Value

Hi Elena,

Attached is an updated patch to handle masked packed absolute value. I modeled this after the conflict patterns and intrinsics.

Also, does GCC mention how they will handle zero-merging intrinsics?
It wasn't obvious to me looking at their documents.

Thanks,
Cameron


On Tue, Dec 24, 2013 at 9:53 AM, Demikhovsky, Elena <elena.demikhovsky at intel.com> wrote:
> Hi Cameron,
>
> I'm looking at GCC intrinsics.
> I see
> __builtin_ia32_pabsq512_mask and
> __builtin_ia32_pabsd512_mask.
>
> I think we should be aligned with GCC.
>
>
> -  Elena
>
>
> -----Original Message-----
> From: Cameron McInally [mailto:cameron.mcinally at nyu.edu]
> Sent: Tuesday, December 24, 2013 16:45
> To: llvm-commits at cs.uiuc.edu
> Cc: Demikhovsky, Elena
> Subject: [PATCH][AVX512] Add intrinsics for Packed Absolute Value
>
> Hey guys,
>
> Attached is a patch to support AVX512 Packed Absolute Value intrinsics.
>
> Thanks,
> Cameron
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
>
> This e-mail and any attachments may contain confidential material for 
> the sole use of the intended recipient(s). Any review or distribution 
> by others is strictly prohibited. If you are not the intended 
> recipient, please contact the sender and delete all copies.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




More information about the llvm-commits mailing list