Commit 85c0a556 by Richard Kenner

(simplify_binary_operation): Test value of SHIFT_COUNT_TRUNCATED if it

is defined.

From-SVN: r5731
parent 5541136b
...@@ -3409,7 +3409,8 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3409,7 +3409,8 @@ simplify_binary_operation (code, mode, op0, op1)
case ASHIFT: case LSHIFT: case ASHIFT: case LSHIFT:
case ROTATE: case ROTATERT: case ROTATE: case ROTATERT:
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
l2 &= (GET_MODE_BITSIZE (mode) - 1), h2 = 0; if (SHIFT_COUNT_TRUNCATED)
l2 &= (GET_MODE_BITSIZE (mode) - 1), h2 = 0;
#endif #endif
if (h2 != 0 || l2 < 0 || l2 >= GET_MODE_BITSIZE (mode)) if (h2 != 0 || l2 < 0 || l2 >= GET_MODE_BITSIZE (mode))
...@@ -3840,7 +3841,8 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3840,7 +3841,8 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
arg1 &= (BITS_PER_WORD - 1); if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1);
#endif #endif
if (arg1 >= width) if (arg1 >= width)
...@@ -3855,7 +3857,8 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3855,7 +3857,8 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
arg1 &= (BITS_PER_WORD - 1); if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1);
#endif #endif
if (arg1 >= width) if (arg1 >= width)
...@@ -3869,7 +3872,8 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3869,7 +3872,8 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
arg1 &= (BITS_PER_WORD - 1); if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1);
#endif #endif
if (arg1 >= width) if (arg1 >= width)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment