This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.3/3.4 PATCH] PR target/7248: Fix iordi3 for m68k


This fixes a long standing bug in the m68k backend.  Tested with a cross
compiler on m68k-linux.  OK for HEAD and 3.3 branch?

Andreas.

2003-03-14  Andreas Schwab  <schwab at suse dot de>

	* config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
	martin at blom dot org dot 

--- gcc/config/m68k/m68k.md.~1.51.14.2.~	2003-02-25 14:15:42.000000000 +0100
+++ gcc/config/m68k/m68k.md	2003-03-14 18:00:31.000000000 +0100
@@ -3862,7 +3862,7 @@
 	  case -1 :
 	    /* FIXME : a scratch register would be welcome here if operand[0]
 	       is not a register */
-	    output_asm_insn (\"move%.l %#-1,%R0\", operands);
+	    output_asm_insn (\"move%.l %#-1,%0\", operands);
 	    break;
 	  default :
 	    {

-- 
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]