summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-10.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-09 20:11:48 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-09 20:11:48 +0000
commitcdfeb7150448aa90306a8126fdb334a0aba739ce (patch)
treedbef59a183a8241d0fee11d70432c971171cfd8a /gcc/testsuite/gcc.dg/builtins-10.c
parent15b9bf7599cd2be6b5cf276b1fde28bd94c6b774 (diff)
downloadgcc-cdfeb7150448aa90306a8126fdb334a0aba739ce.tar.gz
* builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
code. Add more cbrt transformations. testsuite: * gcc.dg/builtins-10.c: Reactivate disabled test. * gcc.dg/torture/builtin-power-1.c: Likewise. Also add tests for new cbrt transformations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-10.c')
-rw-r--r--gcc/testsuite/gcc.dg/builtins-10.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-10.c b/gcc/testsuite/gcc.dg/builtins-10.c
index 53158a0f852..d90e61ab326 100644
--- a/gcc/testsuite/gcc.dg/builtins-10.c
+++ b/gcc/testsuite/gcc.dg/builtins-10.c
@@ -18,8 +18,8 @@ extern double fabs(double);
void test(double x)
{
- /*if (sqrt(pow(x,4.0)) != x*x)
- link_error (); */
+ if (sqrt(pow(x,4.0)) != x*x)
+ link_error ();
if (pow(sqrt(x),4.0) != x*x)
link_error ();