aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2023-06-05 12:38:41 +0800
committerliuhongt <hongtao.liu@intel.com>2023-06-09 09:41:47 +0800
commitdac73e4c64bf62be18bd5203e4e0f3e6bc64b4dc (patch)
tree4689c974c0fa7b1fc2a6f73be7f3e09c4d041e19 /gcc/tree-vectorizer.h
parent07b86ab138bf8be8cb331015cd2b9775c6856ac6 (diff)
downloadgcc-dac73e4c64bf62be18bd5203e4e0f3e6bc64b4dc.zip
gcc-dac73e4c64bf62be18bd5203e4e0f3e6bc64b4dc.tar.gz
gcc-dac73e4c64bf62be18bd5203e4e0f3e6bc64b4dc.tar.bz2
Explicitly view_convert_expr mask to signed type when folding pblendvb builtins.
Since mask < 0 will be always false for vector char when -funsigned-char, but vpblendvb needs to check the most significant bit. The patch explicitly VCE to vector signed char. gcc/ChangeLog: PR target/110108 * config/i386/i386.cc (ix86_gimple_fold_builtin): Explicitly view_convert_expr mask to signed type when folding pblendvb builtins. gcc/testsuite/ChangeLog: * gcc.target/i386/pr110108-2.c: New test.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions