aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-08-21 11:07:18 +0200
committerRichard Biener <rguenther@suse.de>2023-08-21 11:46:48 +0200
commite10cb804e658dbd1e9d58f528f3985362e4e72e7 (patch)
tree3a21af0b535cac057e653f5e540063cf0102b690 /gcc/fold-const.cc
parent03cb6904d1ab6de1f42d06bcf2988bf7b3e7709a (diff)
downloadgcc-e10cb804e658dbd1e9d58f528f3985362e4e72e7.zip
gcc-e10cb804e658dbd1e9d58f528f3985362e4e72e7.tar.gz
gcc-e10cb804e658dbd1e9d58f528f3985362e4e72e7.tar.bz2
tree-optimization/111082 - bogus promoted min
vectorize_slp_instance_root_stmt promotes operations with undefined overflow to unsigned arithmetic but fails to consider operations that do not overflow like MIN which it turned into MIN with wrong signedness and in the case of the PR an unsupported operation. The following rectifies this. PR tree-optimization/111082 * tree-vect-slp.cc (vectorize_slp_instance_root_stmt): Only pun operations that can overflow. * gcc.dg/pr111082.c: New testcase.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions