blob: e7bf305a0eb3e435f72180c57f100fb848e8589e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* { dg-do preprocess { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-mno-avx" } */
#ifdef __AVX__
#error "__AVX__ should not be defined #1"
#endif
#pragma GCC target("avx")
#ifndef __AVX__
#error "__AVX__ should be defined #1"
#endif
#pragma GCC reset_options
#ifdef __AVX__
#error "__AVX__ should not be defined #2"
#endif
#pragma GCC push_options
#pragma GCC target("avx")
#ifndef __AVX__
#error "__AVX__ should be defined #2"
#endif
#pragma GCC pop_options
#ifdef __AVX__
#error "__AVX__ should not be defined #3"
#endif
|