This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] i386.md optimization
- From: Uros Bizjak <uros at kss-loka dot si>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Nov 2004 08:58:37 +0100
- Subject: [PATCH] i386.md optimization
Hello!
This obvious patch will save a couple of cycles and bytes ...
Bootstrapped i686-pc-linux-gnu, regtested c,c++.
2004-11-19 Uros Bizjak <uros@kss-loka.si>
* configure/i386/i386.md (*movsf_1, *movsf_1_nointerunit)
[case 6]: Fallthru to [case 7] for !MODE_V4SF insns.
(*movdf_nointeger, *movdf_integer) [case 7]: Fallthru
to [case 8] for !MODE_V2DF insns.
Uros.
Index: i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.564
diff -u -r1.564 i386.md
--- i386.md 18 Nov 2004 14:33:08 -0000 1.564
+++ i386.md 19 Nov 2004 06:58:25 -0000
@@ -2271,8 +2271,7 @@
case 6:
if (get_attr_mode (insn) == MODE_V4SF)
return "movaps\t{%1, %0|%0, %1}";
- else
- return "movss\t{%1, %0|%0, %1}";
+ /* FALLTHRU */
case 7:
case 8:
return "movss\t{%1, %0|%0, %1}";
@@ -2359,8 +2358,7 @@
case 6:
if (get_attr_mode (insn) == MODE_V4SF)
return "movaps\t{%1, %0|%0, %1}";
- else
- return "movss\t{%1, %0|%0, %1}";
+ /* FALLTHRU */
case 7:
case 8:
return "movss\t{%1, %0|%0, %1}";
@@ -2542,8 +2540,7 @@
case 7:
if (get_attr_mode (insn) == MODE_V2DF)
return "movlpd\t{%1, %0|%0, %1}";
- else
- return "movsd\t{%1, %0|%0, %1}";
+ /* FALLTHRU */
case 8:
return "movsd\t{%1, %0|%0, %1}";
@@ -2644,8 +2641,7 @@
case 7:
if (get_attr_mode (insn) == MODE_V2DF)
return "movlpd\t{%1, %0|%0, %1}";
- else
- return "movsd\t{%1, %0|%0, %1}";
+ /* FALLTHRU */
case 8:
return "movsd\t{%1, %0|%0, %1}";