Commit 85c0a556 by Richard Kenner

(simplify_binary_operation): Test value of SHIFT_COUNT_TRUNCATED if it

is defined.

From-SVN: r5731
parent 5541136b
...@@ -3409,6 +3409,7 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3409,6 +3409,7 @@ 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
if (SHIFT_COUNT_TRUNCATED)
l2 &= (GET_MODE_BITSIZE (mode) - 1), h2 = 0; l2 &= (GET_MODE_BITSIZE (mode) - 1), h2 = 0;
#endif #endif
...@@ -3840,6 +3841,7 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3840,6 +3841,7 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1); arg1 &= (BITS_PER_WORD - 1);
#endif #endif
...@@ -3855,6 +3857,7 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3855,6 +3857,7 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1); arg1 &= (BITS_PER_WORD - 1);
#endif #endif
...@@ -3869,6 +3872,7 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -3869,6 +3872,7 @@ simplify_binary_operation (code, mode, op0, op1)
return 0; return 0;
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
if (SHIFT_COUNT_TRUNCATED)
arg1 &= (BITS_PER_WORD - 1); arg1 &= (BITS_PER_WORD - 1);
#endif #endif
......
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