gcc/testsuite/gcc.target/i386/pr110452.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize -fno-vect-cost-model -mavx512f -mprefer-vector-width=512" } */ |
| 3 | |
| 4 | double a[1024], b[1024], c[1024]; |
| 5 | |
| 6 | void foo (int flag, int n) |
| 7 | { |
| 8 | _Bool x = flag == 3; |
| 9 | for (int i = 0; i < n; ++i) |
| 10 | a[i] = (x ? b[i] : c[i]) * 42.; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-not "\[^x\]orl" } } */ |