PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon-vorn-vbic.c
blob6f2d20b6dbd46fea9648e007ead8eb16c7f5d124
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_neon_ok } */
3 /* { dg-options "-O2 -ftree-vectorize" } */
4 /* { dg-add-options arm_neon } */
6 void bor (int *__restrict__ c, int *__restrict__ a, int *__restrict__ b)
8 int i;
9 for (i = 0; i < 9; i++)
10 c[i] = b[i] | (~a[i]);
12 void bic (int *__restrict__ c, int *__restrict__ a, int *__restrict__ b)
14 int i;
15 for (i = 0; i < 9; i++)
16 c[i] = b[i] & (~a[i]);
19 /* { dg-final { scan-assembler "vorn\\t" } } */
20 /* { dg-final { scan-assembler "vbic\\t" } } */