aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2007-09-06 18:57:57 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2007-09-06 11:57:57 -0700
commitabf4ada91c6bb43c7313bd5ac6d4574b418de1e8 (patch)
tree1b23b553e4fbf53b1cd2402591fc931134c32fb1
parenta125de0cbf0106312c61b65872eec96a9f28f5d4 (diff)
downloadgcc-abf4ada91c6bb43c7313bd5ac6d4574b418de1e8.zip
gcc-abf4ada91c6bb43c7313bd5ac6d4574b418de1e8.tar.gz
gcc-abf4ada91c6bb43c7313bd5ac6d4574b418de1e8.tar.bz2
spu.md (floatsidf2): Use convert_optab_libfunc instead of ufloat_optab->handlers directly.
2007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com> Jan Hubicka <jh@suse.cz> * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc instead of ufloat_optab->handlers directly. (floatdidf2): Likewise. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r128202
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/spu/spu.md12
2 files changed, 15 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e304f1d..379ba58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
+ Jan Hubicka <jh@suse.cz>
+
+ * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
+ instead of ufloat_optab->handlers directly.
+ (floatdidf2): Likewise.
+
2007-09-06 Sandra Loosemore <sandra@codesourcery.com>
* config/mips/mips.c: Include diagnostic.h.
diff --git a/gcc/config/spu/spu.md b/gcc/config/spu/spu.md
index 1afdd11..e2305ff 100644
--- a/gcc/config/spu/spu.md
+++ b/gcc/config/spu/spu.md
@@ -676,8 +676,10 @@
start_sequence ();
value =
- emit_library_call_value (ufloat_optab->handlers[DFmode][SImode].libfunc,
- NULL_RTX, LCT_NORMAL, DFmode, 1, r0, SImode);
+ emit_library_call_value (convert_optab_libfunc (ufloat_optab,
+ DFmode, SImode),
+ NULL_RTX, LCT_NORMAL, DFmode, 1, r0, SImode);
+
insns = get_insns ();
end_sequence ();
emit_libcall_block (insns, r1, value,
@@ -713,8 +715,10 @@
start_sequence ();
value =
- emit_library_call_value (ufloat_optab->handlers[DFmode][DImode].libfunc,
- NULL_RTX, LCT_NORMAL, DFmode, 1, r0, DImode);
+ emit_library_call_value (convert_optab_libfunc (ufloat_optab,
+ DFmode, DImode),
+ NULL_RTX, LCT_NORMAL, DFmode, 1, r0, DImode);
+
insns = get_insns ();
end_sequence ();
emit_libcall_block (insns, r1, value,