1 /* Test whether all of the 32-bit function specific options are accepted 2 without error. */ 3 /* { dg-do compile } */ 4 /* { dg-require-effective-target ia32 } */ 5 6 #include "funcspec-56.inc" 7 8 extern void test_arch_i386 (void) __attribute__((__target__("arch=i386"))); 9 extern void test_arch_i486 (void) __attribute__((__target__("arch=i486"))); 10 extern void test_arch_i586 (void) __attribute__((__target__("arch=i586"))); 11 extern void test_arch_pentium (void) __attribute__((__target__("arch=pentium"))); 12 extern void test_arch_pentium_mmx (void) __attribute__((__target__("arch=pentium-mmx"))); 13 extern void test_arch_winchip_c6 (void) __attribute__((__target__("arch=winchip-c6"))); 14 extern void test_arch_winchip2 (void) __attribute__((__target__("arch=winchip2"))); 15 extern void test_arch_c3 (void) __attribute__((__target__("arch=c3"))); 16 extern void test_arch_c3_2 (void) __attribute__((__target__("arch=c3-2"))); 17 extern void test_arch_i686 (void) __attribute__((__target__("arch=i686"))); 18 extern void test_arch_pentiumpro (void) __attribute__((__target__("arch=pentiumpro"))); 19 extern void test_arch_pentium2 (void) __attribute__((__target__("arch=pentium2"))); 20 extern void test_arch_pentium3 (void) __attribute__((__target__("arch=pentium3"))); 21 extern void test_arch_pentium3m (void) __attribute__((__target__("arch=pentium3m"))); 22 extern void test_arch_pentium_m (void) __attribute__((__target__("arch=pentium-m"))); 23 extern void test_arch_pentium4 (void) __attribute__((__target__("arch=pentium4"))); 24 extern void test_arch_pentium4m (void) __attribute__((__target__("arch=pentium4m"))); 25 extern void test_arch_prescott (void) __attribute__((__target__("arch=prescott"))); 26 extern void test_arch_geode (void) __attribute__((__target__("arch=geode"))); 27 extern void test_arch_k6 (void) __attribute__((__target__("arch=k6"))); 28 extern void test_arch_k6_2 (void) __attribute__((__target__("arch=k6-2"))); 29 extern void test_arch_k6_3 (void) __attribute__((__target__("arch=k6-3"))); 30 extern void test_arch_athlon (void) __attribute__((__target__("arch=athlon"))); 31 extern void test_arch_athlon_tbird (void) __attribute__((__target__("arch=athlon-tbird"))); 32 extern void test_arch_athlon_4 (void) __attribute__((__target__("arch=athlon-4"))); 33 extern void test_arch_athlon_xp (void) __attribute__((__target__("arch=athlon-xp"))); 34 extern void test_arch_athlon_mp (void) __attribute__((__target__("arch=athlon-mp"))); 35 extern void test_arch_foo (void) __attribute__((__target__("arch=foo"))); /* { dg-error "bad value" } */ 36 37 extern void test_tune_i386 (void) __attribute__((__target__("tune=i386"))); 38 extern void test_tune_i486 (void) __attribute__((__target__("tune=i486"))); 39 extern void test_tune_i586 (void) __attribute__((__target__("tune=i586"))); 40 extern void test_tune_pentium (void) __attribute__((__target__("tune=pentium"))); 41 extern void test_tune_pentium_mmx (void) __attribute__((__target__("tune=pentium-mmx"))); 42 extern void test_tune_winchip_c6 (void) __attribute__((__target__("tune=winchip-c6"))); 43 extern void test_tune_winchip2 (void) __attribute__((__target__("tune=winchip2"))); 44 extern void test_tune_c3 (void) __attribute__((__target__("tune=c3"))); 45 extern void test_tune_c3_2 (void) __attribute__((__target__("tune=c3-2"))); 46 extern void test_tune_i686 (void) __attribute__((__target__("tune=i686"))); 47 extern void test_tune_pentiumpro (void) __attribute__((__target__("tune=pentiumpro"))); 48 extern void test_tune_pentium2 (void) __attribute__((__target__("tune=pentium2"))); 49 extern void test_tune_pentium3 (void) __attribute__((__target__("tune=pentium3"))); 50 extern void test_tune_pentium3m (void) __attribute__((__target__("tune=pentium3m"))); 51 extern void test_tune_pentium_m (void) __attribute__((__target__("tune=pentium-m"))); 52 extern void test_tune_pentium4 (void) __attribute__((__target__("tune=pentium4"))); 53 extern void test_tune_pentium4m (void) __attribute__((__target__("tune=pentium4m"))); 54 extern void test_tune_prescott (void) __attribute__((__target__("tune=prescott"))); 55 extern void test_tune_geode (void) __attribute__((__target__("tune=geode"))); 56 extern void test_tune_k6 (void) __attribute__((__target__("tune=k6"))); 57 extern void test_tune_k6_2 (void) __attribute__((__target__("tune=k6-2"))); 58 extern void test_tune_k6_3 (void) __attribute__((__target__("tune=k6-3"))); 59 extern void test_tune_athlon (void) __attribute__((__target__("tune=athlon"))); 60 extern void test_tune_athlon_tbird (void) __attribute__((__target__("tune=athlon-tbird"))); 61 extern void test_tune_athlon_4 (void) __attribute__((__target__("tune=athlon-4"))); 62 extern void test_tune_athlon_xp (void) __attribute__((__target__("tune=athlon-xp"))); 63 extern void test_tune_athlon_mp (void) __attribute__((__target__("tune=athlon-mp"))); 64 extern void test_tune_foo (void) __attribute__((__target__("tune=foo"))); /* { dg-error "bad value" } */ 65