PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr71984.c
blob7afdd77faa948aea0ac9cd4460d64a0cb6ea9cb8
1 /* { dg-do run { target lp64 } } */
2 /* { dg-additional-options "-w -Wno-psabi" } */
4 typedef unsigned char v64u8 __attribute__((vector_size(64)));
5 typedef unsigned long v64u64 __attribute__((vector_size(64)));
6 typedef unsigned char u8;
8 static u8 __attribute__ ((noinline, noclone))
9 foo (v64u64 v64u64_0)
11 return ((v64u8)(v64u64){0, v64u64_0[0]})[13];
14 int
15 main ()
17 u8 x = foo((v64u64){0x0706050403020100UL});
18 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
19 if (x != 5)
20 __builtin_abort ();
21 #endif
22 return 0;