URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [excess-precision-5.c] - Rev 328
Go to most recent revision | Compare with Previous | Blame | View Log
/* Excess precision tests. Verify excess precision doesn't affect actual types. */ /* { dg-do compile } */ /* { dg-options "-mfpmath=387 -fexcess-precision=standard" } */ float f; double d; void test_types (void) { float *fp; double *dp; #define CHECK_FLOAT(E) fp = &(typeof(E)){0} #define CHECK_DOUBLE(E) dp = &(typeof(E)){0} CHECK_FLOAT (f + f); CHECK_DOUBLE (d + d); CHECK_FLOAT (f * f / f); CHECK_DOUBLE (d * d / d); CHECK_FLOAT (f ? f - f : f); CHECK_DOUBLE (d ? d - d : d); }
Go to most recent revision | Compare with Previous | Blame | View Log