SH optimized software floating point routines
Joern Rennecke
joern.rennecke@embecosm.com
Thu Jul 22 07:37:00 GMT 2010
Quoting Christian Bruel <christian.bruel@st.com>:
> Edited to apply on top of latest Joern's patch. Certainly not optimal
> but it fixes the QNaNs checks for builtins and inlined unordered
> comparisons for -mieee or -fno-inite-math-only.
You are still on the wrong track; as I said in my earlier message, we
should not emit the library call for SH4 in the first place.
Please try the attached patch instead.
-------------- next part --------------
--- predicates.md-20100718 2010-07-22 08:17:37.273500678 +0100
+++ predicates.md 2010-07-22 08:28:57.257502902 +0100
@@ -575,9 +575,10 @@
;; UNORDERED is only supported on SHMEDIA.
(define_predicate "sh_float_comparison_operator"
- (ior (match_operand 0 "ordered_comparison_operator")
- (and (match_test "TARGET_SHMEDIA")
- (match_code "unordered"))))
+ (if_then_else (match_test "TARGET_SHMEDIA")
+ (ior (match_operand 0 "ordered_comparison_operator")
+ (match_code "unordered"))
+ (match_operand 0 "comparison_operator")))
(define_predicate "shmedia_cbranch_comparison_operator"
(ior (match_operand 0 "equality_comparison_operator")
More information about the Gcc
mailing list