diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fd29e51553da200504c6c3ebfa958a58a7900485..41a1b96208e168a345bfe88e2ac2e6a959ba736a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
+
+	* config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
+	Compare <ssevecmode>mode with V4SFmode, not V4SImode.
+
 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
 
 	* config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 491037149b63290138b8dec7fff754450e4ccd73..a8ebfa48000f7ae7197d0f219ac6d1d29afd8d26 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -5053,7 +5053,7 @@
       emit_insn (gen_sse2_loadld (operands[4],
 				  CONST0_RTX (V4SImode), operands[2]));
     }
-  if (<ssevecmode>mode == V4SImode)
+  if (<ssevecmode>mode == V4SFmode)
     emit_insn (gen_floatv4siv4sf2 (operands[3], operands[4]));
   else
     emit_insn (gen_sse2_cvtdq2pd (operands[3], operands[4]));