summaryrefslogtreecommitdiff
path: root/gcc/match.pd
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-07-03 12:47:07 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-07-03 12:47:07 +0000
commitcc49641a7132b66a8fdf26038aa1343e60473eaa (patch)
treed3f05a4e7e4d60636a87fb2192c4979f54ef1703 /gcc/match.pd
parentd398999dbe0eca4978beaa82bf84b3e3b0798f0e (diff)
re PR tree-optimization/91069 (Miscompare of 453.povray since r272843)
2019-07-03 Richard Biener <rguenther@suse.de> PR middle-end/91069 * match.pd (vec_perm -> bit_insert): Fix element read from first vector. * gcc.dg/pr91069.c: New testcase. From-SVN: r273007
Diffstat (limited to 'gcc/match.pd')
-rw-r--r--gcc/match.pd2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/match.pd b/gcc/match.pd
index f8e35e96d22..4a7aa0185d8 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -5520,7 +5520,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
first vector we only can insert the first elt from
the first vector. */
at = 0;
- if ((ins = fold_read_from_vector (cop0, 0)))
+ if ((ins = fold_read_from_vector (cop0, sel[0])))
op0 = op1;
}
else