aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,