From 61da04bdada39d393c0ca6cd006099db7ada4ced Mon Sep 17 00:00:00 2001
From: Roger Sayle <roger@eyesopen.com>
Date: Wed, 18 Jan 2006 20:42:41 +0000
Subject: [PATCH] i386.md (shift spliter): Fix a a typo in the splitter for
 shifts where the source and destination...

	* config/i386/i386.md (shift spliter): Fix a a typo in the splitter
	for shifts where the source and destination registers are different.

From-SVN: r109912
---
 gcc/ChangeLog           | 5 +++++
 gcc/config/i386/i386.md | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bae9ffa1089d..349f8dcffa22 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-18  Roger Sayle  <roger@eyesopen.com>
+
+	* config/i386/i386.md (shift spliter): Fix a a typo in the splitter
+	for shifts where the source and destination registers are different.
+
 2006-01-18  Paul Brook  <paul@codesourcery.com>
 
 	Merge from csl-arm-branch.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 99b3acf537a2..146ed096c6aa 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -10569,7 +10569,7 @@
   [(const_int 0)]
 {
   rtx pat, clob;
-  emit_move_insn (operands[1], operands[0]);
+  emit_move_insn (operands[0], operands[1]);
   pat = gen_rtx_SET (VOIDmode, operands[0],
 		     gen_rtx_ASHIFT (GET_MODE (operands[0]),
 				     operands[0], operands[2]));
-- 
GitLab