[Bug target/104946] [12 regression] Suboptimal gimple foding for blendvpd under sse4.1
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 16 08:57:04 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104946
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
https://gcc.gnu.org/g:570d5bff9af537265a3e0935140786e5fdf51de1
commit r12-7662-g570d5bff9af537265a3e0935140786e5fdf51de1
Author: liuhongt <hongtao.liu@intel.com>
Date: Wed Mar 16 15:59:57 2022 +0800
Don't fold __builtin_ia32_blendvpd w/o sse4.2.
__builtin_ia32_blendvpd is defined under sse4.1 and gimple folded
to ((v2di) c) < 0 ? b : a where vec_cmpv2di is under sse4.2 w/o which
it's veclowered to scalar operations and not combined back in rtl.
gcc/ChangeLog:
PR target/104946
* config/i386/i386-builtin.def (BDESC): Add
CODE_FOR_sse4_1_blendvpd for IX86_BUILTIN_BLENDVPD.
* config/i386/i386.cc (ix86_gimple_fold_builtin): Don't fold
__builtin_ia32_blendvpd w/o sse4.2
gcc/testsuite/ChangeLog:
* gcc.target/i386/sse4_1-blendvpd-1.c: New test.
More information about the Gcc-bugs
mailing list