Commit 6780a54b by Richard Kenner

(rotl[shq]i3, rotl[hq]i3+1): Don't directly modify operand.

From-SVN: r13882
parent 3ff78fe3
...@@ -4749,7 +4749,7 @@ ...@@ -4749,7 +4749,7 @@
return \"swap %0\"; return \"swap %0\";
else if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 16) else if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 16)
{ {
INTVAL (operands[2]) = 32 - INTVAL (operands[2]); operands[2] = gen_rtx (CONST_INT, VOIDmode, 32 - INTVAL (operands[2]));
return \"ror%.l %2,%0\"; return \"ror%.l %2,%0\";
} }
else else
...@@ -4765,7 +4765,7 @@ ...@@ -4765,7 +4765,7 @@
{ {
if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 8) if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 8)
{ {
INTVAL (operands[2]) = 16 - INTVAL (operands[2]); operands[2] = gen_rtx (CONST_INT, VOIDmode, 16 - INTVAL (operands[2]));
return \"ror%.w %2,%0\"; return \"ror%.w %2,%0\";
} }
else else
...@@ -4781,7 +4781,7 @@ ...@@ -4781,7 +4781,7 @@
{ {
if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 8) if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 8)
{ {
INTVAL (operands[2]) = 16 - INTVAL (operands[2]); operands[2] = gen_rtx (CONST_INT, VOIDmode, 16 - INTVAL (operands[2]));
return \"ror%.w %2,%0\"; return \"ror%.w %2,%0\";
} }
else else
...@@ -4797,7 +4797,7 @@ ...@@ -4797,7 +4797,7 @@
{ {
if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 4) if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 4)
{ {
INTVAL (operands[2]) = 8 - INTVAL (operands[2]); operands[2] = gen_rtx (CONST_INT, VOIDmode, 8 - INTVAL (operands[2]));
return \"ror%.b %2,%0\"; return \"ror%.b %2,%0\";
} }
else else
...@@ -4813,7 +4813,7 @@ ...@@ -4813,7 +4813,7 @@
{ {
if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 4) if (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) >= 4)
{ {
INTVAL (operands[2]) = 8 - INTVAL (operands[2]); operands[2] = gen_rtx (CONST_INT, VOIDmode, 8 - INTVAL (operands[2]));
return \"ror%.b %2,%0\"; return \"ror%.b %2,%0\";
} }
else else
......
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