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/] [recip-vec-sqrtf.c] - Rev 318
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse -mfpmath=sse -mrecip" } */ /* { dg-require-effective-target sse } */ float a[16]; float b[16]; float r[16]; extern float sqrtf (float); void t1(void) { int i; for (i = 0; i < 16; i++) r[i] = a[i] / sqrtf (b[i]); } void t2(void) { int i; for (i = 0; i < 16; i++) r[i] = sqrtf (a[i] / b[i]); } void t3(void) { int i; for (i = 0; i < 16; i++) r[i] = sqrtf (a[i]); } /* { dg-final { scan-assembler-times "rsqrtps" 3 } } */