diff options
author | Richard Guenther <rguenther@suse.de> | 2012-03-22 13:52:19 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-03-22 13:52:19 +0000 |
commit | e45381b354ce6eac6cbcbf8a83f818c82ac52ac7 (patch) | |
tree | e0a9686490bdfe3c1573a7e822c048231e51711d /gcc/fold-const.c | |
parent | 94236928129c40f6b9e98e3846beb105cf801045 (diff) | |
download | gcc-e45381b354ce6eac6cbcbf8a83f818c82ac52ac7.zip gcc-e45381b354ce6eac6cbcbf8a83f818c82ac52ac7.tar.gz gcc-e45381b354ce6eac6cbcbf8a83f818c82ac52ac7.tar.bz2 |
re PR tree-optimization/52666 (FAIL: scal-to-vec1.c)
2012-03-22 Richard Guenther <rguenther@suse.de>
PR middle-end/52666
* fold-const.c (fold_ternary_loc): Fix typo.
From-SVN: r185693
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 33b8dc8..1e91bac 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); |