summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-12 15:24:35 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-12 15:24:35 +0000
commit0f0b3ebb6bdafdec0dbc64f1d7d72a8cb770cfe6 (patch)
treea5f3056d9221981e134baf3b8f1fb602b1e8ebd5 /gcc
parent049c06c348ae2ca657997be5849d303bd368277c (diff)
downloadgcc-0f0b3ebb6bdafdec0dbc64f1d7d72a8cb770cfe6.tar.gz
* config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129263 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/c4x/c4x.md4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7bafdaa2650..58c28394823 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
+
2007-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
* global.c (build_insn_chain): Formatting fixes.
diff --git a/gcc/config/c4x/c4x.md b/gcc/config/c4x/c4x.md
index aab2095aa35..364457d9347 100644
--- a/gcc/config/c4x/c4x.md
+++ b/gcc/config/c4x/c4x.md
@@ -2085,7 +2085,7 @@
operands[2]));
DONE;
}
- c4x_emit_libcall3 (smul_optab->handlers[(int) QImode].libfunc,
+ c4x_emit_libcall3 (optab_libfunc (smul_optab, QImode),
MULT, QImode, operands);
DONE;
}
@@ -7157,7 +7157,7 @@
(match_operand:HI 2 "src_operand" "")))
(clobber (reg:CC 21))])]
""
- "c4x_emit_libcall3 (smul_optab->handlers[(int) HImode].libfunc,
+ "c4x_emit_libcall3 (optab_libfunc (smul_optab, HImode),
MULT, HImode, operands);
DONE;")