gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-divf.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mrecip -mlasx -mfrecipe -fno-unsafe-math-optimizations" } */ |
| 3 | /* { dg-final { scan-assembler "xvfdiv.s" } } */ |
| 4 | /* { dg-final { scan-assembler-not "xvfrecipe.s" } } */ |
| 5 | |
| 6 | float a[8],b[8],c[8]; |
| 7 | |
| 8 | void |
| 9 | foo () |
| 10 | { |
| 11 | for (int i = 0; i < 8; i++) |
| 12 | c[i] = a[i] / b[i]; |
| 13 | } |