re PR tree-optimization/52666 (FAIL: scal-to-vec1.c)
authorRichard Guenther <rguenther@suse.de>
Thu, 22 Mar 2012 13:52:19 +0000 (13:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 22 Mar 2012 13:52:19 +0000 (13:52 +0000)
2012-03-22  Richard Guenther  <rguenther@suse.de>

PR middle-end/52666
* fold-const.c (fold_ternary_loc): Fix typo.

From-SVN: r185693

gcc/ChangeLog
gcc/fold-const.c

index f2da615e3322d84249ae1c1d63a98ea4066019c8..86f7e069dd5d267161195b7ef62a627504a71072 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-22  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/52666
+       * fold-const.c (fold_ternary_loc): Fix typo.
+
 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/52496
index 33b8dc83b8b9a589b76f5c5ef415ec5c7435972a..1e91bac997042701d5733ad28835307cf17fe02f 100644 (file)
@@ -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);