URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [vectorize4.c] - Rev 848
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2 -mtune=generic --param ggc-min-expand=0 --param ggc-min-heapsize=0" } */ /* This test, tests two thing, we vectorize square root and also we don't crash due to a GC issue. */ extern double sqrt (double __x); calc_freq (int *dest) { float tmp_out[257]; int i; for (i = 0; i < 256; i++) dest[i] = sqrt (tmp_out[i]); } /* { dg-final { scan-assembler "sqrtpd" } } */
Go to most recent revision | Compare with Previous | Blame | View Log