]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/i386/funcspec-6.c
Change attribute((option(...))) to attribute((target(...))); Do not allocate tree...
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / funcspec-6.c
CommitLineData
46f8e3b0 1/* Test whether all of the 64-bit function specific options are accepted
2 without error. */
3/* { dg-do compile } */
4/* { dg-require-effective-target lp64 } */
5
24470055 6extern void test_abm (void) __attribute__((__target__("abm")));
7extern void test_aes (void) __attribute__((__target__("aes")));
8extern void test_fused_madd (void) __attribute__((__target__("fused-madd")));
9extern void test_mmx (void) __attribute__((__target__("mmx")));
10extern void test_pclmul (void) __attribute__((__target__("pclmul")));
11extern void test_popcnt (void) __attribute__((__target__("popcnt")));
12extern void test_recip (void) __attribute__((__target__("recip")));
13extern void test_sse (void) __attribute__((__target__("sse")));
14extern void test_sse2 (void) __attribute__((__target__("sse2")));
15extern void test_sse3 (void) __attribute__((__target__("sse3")));
16extern void test_sse4 (void) __attribute__((__target__("sse4")));
17extern void test_sse4_1 (void) __attribute__((__target__("sse4.1")));
18extern void test_sse4_2 (void) __attribute__((__target__("sse4.2")));
19extern void test_sse4a (void) __attribute__((__target__("sse4a")));
20extern void test_sse5 (void) __attribute__((__target__("sse5")));
21extern void test_ssse3 (void) __attribute__((__target__("ssse3")));
46f8e3b0 22
24470055 23extern void test_no_abm (void) __attribute__((__target__("no-abm")));
24extern void test_no_aes (void) __attribute__((__target__("no-aes")));
25extern void test_no_fused_madd (void) __attribute__((__target__("no-fused-madd")));
26extern void test_no_mmx (void) __attribute__((__target__("no-mmx")));
27extern void test_no_pclmul (void) __attribute__((__target__("no-pclmul")));
28extern void test_no_popcnt (void) __attribute__((__target__("no-popcnt")));
29extern void test_no_recip (void) __attribute__((__target__("no-recip")));
30extern void test_no_sse (void) __attribute__((__target__("no-sse")));
31extern void test_no_sse2 (void) __attribute__((__target__("no-sse2")));
32extern void test_no_sse3 (void) __attribute__((__target__("no-sse3")));
33extern void test_no_sse4 (void) __attribute__((__target__("no-sse4")));
34extern void test_no_sse4_1 (void) __attribute__((__target__("no-sse4.1")));
35extern void test_no_sse4_2 (void) __attribute__((__target__("no-sse4.2")));
36extern void test_no_sse4a (void) __attribute__((__target__("no-sse4a")));
37extern void test_no_sse5 (void) __attribute__((__target__("no-sse5")));
38extern void test_no_ssse3 (void) __attribute__((__target__("no-ssse3")));
46f8e3b0 39
24470055 40extern void test_arch_nocona (void) __attribute__((__target__("arch=nocona")));
41extern void test_arch_core2 (void) __attribute__((__target__("arch=core2")));
42extern void test_arch_k8 (void) __attribute__((__target__("arch=k8")));
43extern void test_arch_k8_sse3 (void) __attribute__((__target__("arch=k8-sse3")));
44extern void test_arch_opteron (void) __attribute__((__target__("arch=opteron")));
45extern void test_arch_opteron_sse3 (void) __attribute__((__target__("arch=opteron-sse3")));
46extern void test_arch_athlon64 (void) __attribute__((__target__("arch=athlon64")));
47extern void test_arch_athlon64_sse3 (void) __attribute__((__target__("arch=athlon64-sse3")));
48extern void test_arch_athlon_fx (void) __attribute__((__target__("arch=athlon-fx")));
49extern void test_arch_amdfam10 (void) __attribute__((__target__("arch=amdfam10")));
50extern void test_arch_barcelona (void) __attribute__((__target__("arch=barcelona")));
51extern void test_arch_foo (void) __attribute__((__target__("arch=foo"))); /* { dg-error "bad value" } */
46f8e3b0 52
24470055 53extern void test_tune_nocona (void) __attribute__((__target__("tune=nocona")));
54extern void test_tune_core2 (void) __attribute__((__target__("tune=core2")));
55extern void test_tune_k8 (void) __attribute__((__target__("tune=k8")));
56extern void test_tune_k8_sse3 (void) __attribute__((__target__("tune=k8-sse3")));
57extern void test_tune_opteron (void) __attribute__((__target__("tune=opteron")));
58extern void test_tune_opteron_sse3 (void) __attribute__((__target__("tune=opteron-sse3")));
59extern void test_tune_athlon64 (void) __attribute__((__target__("tune=athlon64")));
60extern void test_tune_athlon64_sse3 (void) __attribute__((__target__("tune=athlon64-sse3")));
61extern void test_tune_athlon_fx (void) __attribute__((__target__("tune=athlon-fx")));
62extern void test_tune_amdfam10 (void) __attribute__((__target__("tune=amdfam10")));
63extern void test_tune_barcelona (void) __attribute__((__target__("tune=barcelona")));
64extern void test_tune_generic (void) __attribute__((__target__("tune=generic")));
65extern void test_tune_foo (void) __attribute__((__target__("tune=foo"))); /* { dg-error "bad value" } */
46f8e3b0 66
24470055 67extern void test_fpmath_sse (void) __attribute__((__target__("sse2,fpmath=sse")));
68extern void test_fpmath_387 (void) __attribute__((__target__("sse2,fpmath=387")));
69extern void test_fpmath_sse_387 (void) __attribute__((__target__("sse2,fpmath=sse+387")));
70extern void test_fpmath_387_sse (void) __attribute__((__target__("sse2,fpmath=387+sse")));
71extern void test_fpmath_both (void) __attribute__((__target__("sse2,fpmath=both")));