diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.target/i386/all_one_m256i.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.target/i386/all_one_m256i.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.target/i386/all_one_m256i.c b/gcc-4.8/gcc/testsuite/gcc.target/i386/all_one_m256i.c new file mode 100644 index 000000000..1c3ca08b1 --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.target/i386/all_one_m256i.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mavx2" } */ + +typedef long long __m256i __attribute__ ((__vector_size__ (32))); +typedef int __v8si __attribute__ ((__vector_size__ (32))); + +__m256i foo () +{ + __m256i minus_1 = (__m256i) (__v8si) { -1, -1, -1, -1, -1, -1, -1, -1 }; + + return minus_1; +} + +/* { dg-final { scan-assembler "vpcmpeqd" } } */ |