Commit 0c174a68 by Alasdair Baird Committed by Jeff Law

i386.md (movsf_1): Check REG_P before use of REGNO.

        * i386.md (movsf_1): Check REG_P before use of REGNO.
        (movdf_1): Likewise.
        (movxf_1): Likewise.
        (extendsfdf2): Likewise.
        (extendsfxf2): Likewise.
        (extenddfxf2): Likewise.

From-SVN: r29094
parent 951525d2
No preview for this file type
...@@ -1743,7 +1743,8 @@ ...@@ -1743,7 +1743,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
...@@ -1858,7 +1859,8 @@ ...@@ -1858,7 +1859,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
...@@ -1982,7 +1984,8 @@ ...@@ -1982,7 +1984,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
...@@ -2417,7 +2420,8 @@ ...@@ -2417,7 +2420,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
...@@ -2446,7 +2450,8 @@ ...@@ -2446,7 +2450,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
...@@ -2476,7 +2481,8 @@ ...@@ -2476,7 +2481,8 @@
switch (which_alternative) switch (which_alternative)
{ {
case 0: case 0:
if (find_regno_note (insn, REG_DEAD, REGNO (operands[1]))) if (REG_P (operands[1])
&& find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
return \"fstp\\t%0\"; return \"fstp\\t%0\";
else if (STACK_TOP_P (operands[0])) else if (STACK_TOP_P (operands[0]))
return \"fld%z1\\t%1\"; return \"fld%z1\\t%1\";
......
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