gcc/testsuite/gcc.target/loongarch/fnmam4-vec.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast -mlasx -ftree-vectorize" } */ |
| 3 | /* { dg-require-effective-target loongarch_asx } */ |
| 4 | |
| 5 | void |
| 6 | foo (float *u, float x, float *y, float z) |
| 7 | { |
| 8 | int i; |
| 9 | for (i = 0; i < 1024; i++) |
| 10 | *(u++) = (x - y[i] * z); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-not "\tvori.b"} } */ |
| 14 | /* { dg-final { scan-assembler-not "\txvori.b"} } */ |