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
This commit is contained in:
Richard Guenther 2012-03-22 13:52:19 +00:00 committed by Richard Biener
parent 9423692812
commit e45381b354
2 changed files with 6 additions and 1 deletions

View 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

View 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);