libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-div-bitmask-4.c
blobf02f98faf2fad408f7d7e65a09c678f242aa32eb
1 /* { dg-require-effective-target vect_int } */
3 #include <stdint.h>
4 #include "tree-vect.h"
6 typedef unsigned __attribute__((__vector_size__ (16))) V;
8 static __attribute__((__noinline__)) __attribute__((__noclone__)) V
9 foo (V v, unsigned short i)
11 v /= i;
12 return v;
15 int
16 main (void)
18 V v = foo ((V) { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff }, 0xffff);
19 #pragma GCC novector
20 for (unsigned i = 0; i < sizeof (v) / sizeof (v[0]); i++)
21 if (v[i] != 0x00010001)
22 __builtin_abort ();
23 return 0;
26 /* { dg-final { scan-tree-dump-not "vect_recog_divmod_pattern: detected" "vect" { target aarch64*-*-* } } } */