aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2021-07-27 22:04:22 -0500
committerKewen Lin <linkw@linux.ibm.com>2021-07-27 22:04:22 -0500
commit89b3c97eed75c1e7c492bc727e0016003c5809cc (patch)
tree36b6702f3296a3dd1bbaccabde196cd61d1955f6 /libgfortran
parent872da9a6f664a06d73c987aa0cb2e5b830158a10 (diff)
downloadgcc-89b3c97eed75c1e7c492bc727e0016003c5809cc.zip
gcc-89b3c97eed75c1e7c492bc727e0016003c5809cc.tar.gz
gcc-89b3c97eed75c1e7c492bc727e0016003c5809cc.tar.bz2
vect: Fix wrong check in vect_recog_mulhs_pattern [PR101596]
As PR101596 showed, vect_recog_mulhs_pattern uses target_precision to check the scale_term is expected or not, it could be wrong when the precision of the actual used new_type larger than target_precision as shown by the example. This patch is to use precision of new_type instead of target_precision for the scale_term matching check. Bootstrapped & regtested on powerpc64le-linux-gnu P10, powerpc64-linux-gnu P8, x86_64-redhat-linux and aarch64-linux-gnu. gcc/ChangeLog: PR tree-optimization/101596 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check by using new_type's precision instead. gcc/testsuite/ChangeLog: PR tree-optimization/101596 * gcc.target/powerpc/pr101596-1.c: New test. * gcc.target/powerpc/pr101596-2.c: Likewise. * gcc.target/powerpc/pr101596-3.c: Likewise.
Diffstat (limited to 'libgfortran')
0 files changed, 0 insertions, 0 deletions