2016-05-02 Marc Glisse <marc.glisse@inria.fr>
gcc/
* match.pd (X u< X, X u> X): New transformations.
gcc/testsuite/
* gcc.dg/tree-ssa/unord.c: New testcase.
From-SVN: r235761
+2016-05-02 Marc Glisse <marc.glisse@inria.fr>
+
+ * match.pd (X u< X, X u> X): New transformations.
+
2016-05-02 Marc Glisse <marc.glisse@inria.fr>
* flag-types.h (enum warn_strict_overflow_code): Move ...
(simplify
(cmp @0 @0)
{ constant_boolean_node (true, type); }))
+(for cmp (unlt ungt)
+ (simplify
+ (cmp @0 @0)
+ (unordered @0 @0)))
(simplify
(ltgt @0 @0)
(if (!flag_trapping_math)
+2016-05-02 Marc Glisse <marc.glisse@inria.fr>
+
+ * gcc.dg/tree-ssa/unord.c: New testcase.
+
2016-05-02 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/tree-ssa/20040305-1.c: Adjust.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -fdump-tree-optimized" } */
+
+int f(double a){double b=a;return !__builtin_islessequal(a,b);}
+int g(double a){double b=a;return !__builtin_isgreaterequal(a,b);}
+
+/* { dg-final { scan-tree-dump-times " unord " 2 "optimized" } } */