URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [ssefn-3.c] - Rev 329
Go to most recent revision | Compare with Previous | Blame | View Log
/* Execution test for argument passing with SSE and local functions Written by Paolo Bonzini, 25 January 2005 */ /* { dg-do run } */ /* { dg-options "-O2 -msse -mfpmath=sse" } */ /* { dg-require-effective-target sse } */ #include "sse-check.h" #include <assert.h> static float xs (void) { return 3.14159265; } float ys (float a) { return xs () * a; } static double xd (void) { return 3.1415926535; } double yd (double a) { return xd () * a; } static void sse_test (void) { assert (ys (1) == xs ()); assert (ys (2) == xs () * 2); assert (yd (1) == xd ()); assert (yd (2) == xd () * 2); }
Go to most recent revision | Compare with Previous | Blame | View Log