Patchwork pdp11: fix ICE in movdi

login
register
mail settings
Submitter Paul Koning
Date Oct. 29, 2010, 4:43 p.m.
Message ID <AC40DAE1-D76B-4F3F-82DF-A4C9ABFD5C9D@dell.com>
Download mbox | patch
Permalink /patch/69610/
State New
Headers show

Comments

Paul Koning - Oct. 29, 2010, 4:43 p.m.
movdi would sometimes move from one CPU register set to another, which wasn't handled.  This patch fixes that; this cures a number of testsuite failures.

Committed.

	paul

ChangeLog:

2010-10-29  Paul Koning  <ni1d@arrl.net>

	* config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
	register to register move.

Patch

Index: config/pdp11/pdp11.c
===================================================================
--- config/pdp11/pdp11.c	(revision 166065)
+++ config/pdp11/pdp11.c	(working copy)
@@ -695,12 +695,6 @@ 
 
   gcc_assert (optype0 != RNDOP && optype1 != RNDOP);
   
-  /* check if we move a CPU reg to an FPU reg, or vice versa! */
-  if (optype0 == REGOP && optype1 == REGOP)
-      /* bogus - 64 bit cannot reside in CPU! */
-      gcc_assert (!CPU_REG_P(REGNO(operands[0]))
-		  && !CPU_REG_P (REGNO(operands[1])));
-  
   if (optype0 == REGOP || optype1 == REGOP)
   {
       /* check for use of clrd????