libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-bic-bitmask-23.c
blob95e280005f2479e98e295db87c55920c95d11749
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O1 -fdump-tree-dce -w" } */
3 /* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
5 #include <stdint.h>
7 typedef unsigned int v4si __attribute__ ((vector_size (16)));
9 __attribute__((noinline, noipa))
10 v4si fun(v4si x)
12 v4si mask = { 255, 15, 1, 0xFFFF };
13 v4si zeros = {0};
14 return (x & ~mask) == zeros;
17 /* { dg-final { scan-tree-dump {<=\s*.+\{ 255, 15, 1, 65535 \}} dce7 { target vect_int } } } */