Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/vector-4.c

raw
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