Commit 357ddc7d by Tom de Vries Committed by Tom de Vries

Use INTVAL only on CONST_INT in addptrdi3 and addptrsi3

2014-06-04  Tom de Vries  <tom@codesourcery.com>

	* config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
	CONST_INT.

From-SVN: r211246
parent ca73a1f7
2014-06-04 Tom de Vries <tom@codesourcery.com>
* config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
CONST_INT.
2014-06-04 Marc Glisse <marc.glisse@inria.fr> 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/61385 PR tree-optimization/61385
......
...@@ -5045,10 +5045,10 @@ ...@@ -5045,10 +5045,10 @@
(match_operand:DI 2 "nonmemory_operand" "")))] (match_operand:DI 2 "nonmemory_operand" "")))]
"TARGET_64BIT" "TARGET_64BIT"
{ {
HOST_WIDE_INT c = INTVAL (operands[2]);
if (GET_CODE (operands[2]) == CONST_INT) if (GET_CODE (operands[2]) == CONST_INT)
{ {
HOST_WIDE_INT c = INTVAL (operands[2]);
if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K") if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K")
&& !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os")) && !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os"))
{ {
...@@ -5071,10 +5071,10 @@ ...@@ -5071,10 +5071,10 @@
(use (const_int 0))])] (use (const_int 0))])]
"!TARGET_64BIT" "!TARGET_64BIT"
{ {
HOST_WIDE_INT c = INTVAL (operands[2]);
if (GET_CODE (operands[2]) == CONST_INT) if (GET_CODE (operands[2]) == CONST_INT)
{ {
HOST_WIDE_INT c = INTVAL (operands[2]);
if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K") if (!CONST_OK_FOR_CONSTRAINT_P (c, 'K', "K")
&& !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os")) && !CONST_OK_FOR_CONSTRAINT_P (c, 'O', "Os"))
{ {
......
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