summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-24 19:15:29 +0000
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-24 19:15:29 +0000
commit0dd62afedaced59bde05548d58f86c74efce1130 (patch)
treed4445c28a8b4bf005d30d8e62ac2e1c26972c25e /gcc
parentf8334baec23bd26a2c2fda564c9386fbf137a82a (diff)
downloadppe42-gcc-0dd62afedaced59bde05548d58f86c74efce1130.tar.gz
ppe42-gcc-0dd62afedaced59bde05548d58f86c74efce1130.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66047 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sparc/sparc.md10
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9b3a1fa3021..1ae16b22ae7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index bc8c634ac18..36b213d63d9 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -5289,9 +5289,12 @@
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)
@@ -5495,9 +5498,12 @@
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)
OpenPOWER on IntegriCloud