URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtins-52.c] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do link } */ /* { dg-options "-ffast-math" } */ extern void link_error(void); void test(double x, int n) { if (__builtin_powi(x,-1.0) != 1.0/x) link_error (); if (__builtin_powi(x,0.0) != 1.0) link_error (); if (__builtin_powi(x,1.0) != x) link_error (); if (__builtin_powi(1.0,n) != 1.0) link_error (); } int main() { test(7.3, 2); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log