summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-26 17:35:41 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-26 17:35:41 +0000
commit4ce4dd6bc6e726ac8f573a5349418db793c616f8 (patch)
treee00835f2b68d3123b855be6d9e668e0689dec9c3
parent9966679406912b9376a1d0cc36ebd814c34c4c15 (diff)
downloadgcc-4ce4dd6bc6e726ac8f573a5349418db793c616f8.tar.gz
2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
PR target/20636 * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make sure that we have a REG before getting its REGNO. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97081 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fb5ac8639e0..e914aed155a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR target/20636
+ * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
+ sure that we have a REG before getting its REGNO.
+
2005-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index b9fa39c386d..265c84f3bc3 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -4423,7 +4423,7 @@
#
fmr %0,%1
lfs%U1%X1 %0,%1"
- "&& reload_completed && REGNO (operands[0]) == REGNO (operands[1])"
+ "&& reload_completed && REG_P (operands[1]) && REGNO (operands[0]) == REGNO (operands[1])"
[(const_int 0)]
{
emit_note (NOTE_INSN_DELETED);