From e45381b354ce6eac6cbcbf8a83f818c82ac52ac7 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 22 Mar 2012 13:52:19 +0000 Subject: [PATCH] re PR tree-optimization/52666 (FAIL: scal-to-vec1.c) 2012-03-22 Richard Guenther PR middle-end/52666 * fold-const.c (fold_ternary_loc): Fix typo. From-SVN: r185693 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2da615e332..86f7e069dd5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-22 Richard Guenther + + PR middle-end/52666 + * fold-const.c (fold_ternary_loc): Fix typo. + 2012-03-22 Georg-Johann Lay PR target/52496 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 33b8dc83b8b..1e91bac9970 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -14012,7 +14012,7 @@ fold_ternary_loc (location_t loc, enum tree_code code, tree type, /* Need bit-shifting of the buffer to relax the following. */ && tree_low_cst (op2, 1) % BITS_PER_UNIT == 0) { - unsigned HOST_WIDE_INT bitpos = tree_low_cst (op1, 2); + unsigned HOST_WIDE_INT bitpos = tree_low_cst (op2, 1); unsigned HOST_WIDE_INT bitsize = tree_low_cst (op1, 1); unsigned HOST_WIDE_INT clen; clen = tree_low_cst (TYPE_SIZE_UNIT (TREE_TYPE (arg0)), 1); -- 2.30.2