gcc/testsuite/gcc.target/i386/recip-vec-divf.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse -mfpmath=sse -mrecip -fno-common" } */ |
| 3 | |
| 4 | float a[4]; |
| 5 | float b[4]; |
| 6 | float r[4]; |
| 7 | |
| 8 | void t1(void) |
| 9 | { |
| 10 | int i; |
| 11 | |
| 12 | for (i = 0; i < 4; i++) |
| 13 | r[i] = a[i] / b[i]; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler "rcpps" } } */ |