OSDN Git Service

2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Apr 2003 19:15:29 +0000 (19:15 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Apr 2003 19:15:29 +0000 (19:15 +0000)
* config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
where they might be not present. Use their _sp64 equivalent
instead.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66047 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.md

index 9b3a1fa..1ae16b2 100644 (file)
@@ -1,3 +1,10 @@
+2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
+
+       * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
+       const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets 
+       where they might be not present. Use their _sp64 equivalent
+       instead.
+
 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
 
        * i386.md (cvtsi2sdq): Fix typo in previous patch.
index bc8c634..36b213d 100644 (file)
       if (TARGET_V8PLUS)
        emit_insn (gen_const_mulsidi3_v8plus (operands[0], operands[1],
                                              operands[2]));
-      else
+      else if (TARGET_ARCH32)
        emit_insn (gen_const_mulsidi3_sp32 (operands[0], operands[1],
                                            operands[2]));
+      else 
+       emit_insn (gen_const_mulsidi3_sp64 (operands[0], operands[1],
+                                           operands[2]));
       DONE;
     }
   if (TARGET_V8PLUS)
       if (TARGET_V8PLUS)
        emit_insn (gen_const_umulsidi3_v8plus (operands[0], operands[1],
                                               operands[2]));
-      else
+      else if (TARGET_ARCH32)
        emit_insn (gen_const_umulsidi3_sp32 (operands[0], operands[1],
                                             operands[2]));
+      else 
+       emit_insn (gen_const_umulsidi3_sp64 (operands[0], operands[1],
+                                            operands[2]));
       DONE;
     }
   if (TARGET_V8PLUS)