OSDN Git Service

2009-05-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / vector-4.c
1 /* { dg-do compile } */
2 /* { dg-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
3
4 /* Make sure that vector of size 8 of signed char works. This used to crash with AVX on x86
5    as we would produce try to extract the chars inside the vector mode using the vector mode of V8SI
6    which was wrong. */
7 __attribute__ ((vector_size (8))) signed char v4, v5, v6;
8 void
9 two (void)
10 {
11  v4 = v5 + v6;
12 }
13