2016-07-26 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr71984.c
blobe1dd04bc568f08b4616a8cc38c7ab9d42c5b9217
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 (x != 5)
19 __builtin_abort ();
20 return 0;