aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/t-ldouble-linux64le-ieee
diff options
context:
space:
mode:
authorAlex Coplan <alex.coplan@arm.com>2025-09-09 12:57:14 +0100
committerAlex Coplan <alex.coplan@arm.com>2025-09-15 13:32:36 +0100
commita7a9b7badc0ba95b510c7e61da6439fca78e31d3 (patch)
treeefc87e8e469ea9fedba23ef01569541c3ed1a416 /gcc/config/rs6000/t-ldouble-linux64le-ieee
parent45f605a74fd7e96294477db064cc58033c3fba49 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
match.pd: Add missing type check to reduc(ctor) pattern [PR121772]HEADtrunkmaster
In this PR we have a reduction of a vector constructor, where the type of the constructor is int16x8_t and the elements are int16x4_t; i.e. it is representing a concatenation of two vectors. This triggers a match.pd pattern which looks like it was written to handle reductions of vector constructors where the elements of the ctor are scalars, not vectors. There is no type check to enforce this property, which leads to the pattern replacing a reduction to scalar with an int16x4_t vector in this case, which of course is a type error, leading to an invalid GIMPLE ICE. This patch adds a type check to the pattern, only going ahead with the transformation if the element type of the ctor matches that of the reduction. gcc/ChangeLog: PR tree-optimization/121772 * match.pd: Add type check to reduc(ctor) pattern. gcc/testsuite/ChangeLog: PR tree-optimization/121772 * gcc.target/aarch64/torture/pr121772.c: New test.
Diffstat (limited to 'gcc/config/rs6000/t-ldouble-linux64le-ieee')
0 files changed, 0 insertions, 0 deletions