diff options
author | liuhongt <hongtao.liu@intel.com> | 2021-05-21 09:48:18 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2021-06-28 09:15:40 +0800 |
commit | 28560c6d4043d8f6ac570f35fb84e952e9c719fe (patch) | |
tree | 197e95607f3aab986ded459debbe1b36ab644932 /gcc/gimple-loop-interchange.cc | |
parent | a766c79fc64bba66f16adfe1c8639b5857219f4d (diff) | |
download | gcc-28560c6d4043d8f6ac570f35fb84e952e9c719fe.zip gcc-28560c6d4043d8f6ac570f35fb84e952e9c719fe.tar.gz gcc-28560c6d4043d8f6ac570f35fb84e952e9c719fe.tar.bz2 |
Fold blendv builtins into gimple.
Fold __builtin_ia32_pblendvb128 (a, b, c) as VEC_COND_EXPR (c < 0, b,
a), similar for float version but with mask operand VIEW_CONVERT_EXPR
to same sized integer vectype.
gcc/ChangeLog:
* config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
IX86_BUILTIN_PBLENDVB128): Replace icode with
CODE_FOR_nothing.
* config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
builtins.
* config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
New pre_reload splitter.
gcc/testsuite/ChangeLog:
* gcc.target/i386/funcspec-8.c: Replace
__builtin_ia32_blendvpd with __builtin_ia32_roundps_az.
* gcc.target/i386/blendv-1.c: New test.
* gcc.target/i386/blendv-2.c: New test.
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions