+2007-02-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gcc.dg/builtins-20.c: Add some -~ complex cases.
+
2007-02-07 Hans-Peter Nilsson <hp@axis.com>
* lib/target-supports.exp (check_effective_target_simulator): New.
if (ccos(tan(x)+sin(x-y)*1i) != ccos(-tan(-x)-sin(y-x)*1i))
link_error ();
+
+ if (-5+x*1i != -~(5+x*1i))
+ link_error ();
+
+ if (tan(x)+tan(y)*1i != -~(tan(-x)+tan(y)*1i))
+ link_error ();
}
void test3(__complex__ double x, __complex__ double y, int i)
if (ccosf(tanf(x)+sinf(x-y)*1i) != ccosf(-tanf(-x)-sinf(y-x)*1i))
link_error ();
+
+ if (-5+x*1i != -~(5+x*1i))
+ link_error ();
+
+ if (tanf(x)+tanf(y)*1i != -~(tanf(-x)+tanf(y)*1i))
+ link_error ();
}
void test3f(__complex__ float x, __complex__ float y, int i)
if (ccosl(tanl(x)+sinl(x-y)*1i) != ccosl(-tanl(-x)-sinl(y-x)*1i))
link_error ();
+
+ if (-5+x*1i != -~(5+x*1i))
+ link_error ();
+
+ if (tanl(x)+tanl(y)*1i != -~(tanl(-x)+tanl(y)*1i))
+ link_error ();
}
void test3l(__complex__ long double x, __complex__ long double y, int i)