1 /* { dg-do compile } */
2 /* { dg-require-ifunc "" }  */
3 
4 __attribute__((target("default")))
foo(void)5 int foo(void) { return 1; }
6 __attribute__((target("128bit-long-double")))
foo(void)7 int foo(void) { return 1; }
8 __attribute__((target("80387")))
foo(void)9 int foo(void) { return 1; }
10 __attribute__((target("96bit-long-double")))
foo(void)11 int foo(void) { return 1; }
12 __attribute__((target("long-double-80")))
foo(void)13 int foo(void) { return 1; }
14 __attribute__((target("long-double-64")))
foo(void)15 int foo(void) { return 1; }
16 __attribute__((target("accumulate-outgoing-args")))
foo(void)17 int foo(void) { return 1; }
18 __attribute__((target("align-double")))
foo(void)19 int foo(void) { return 1; }
20 __attribute__((target("align-stringops")))
foo(void)21 int foo(void) { return 1; }
22 __attribute__((target("fancy-math-387")))
foo(void)23 int foo(void) { return 1; }
24 __attribute__((target("force-drap")))
foo(void)25 int foo(void) { return 1; }
26 __attribute__((target("fp-ret-in-387")))
foo(void)27 int foo(void) { return 1; }
28 __attribute__((target("hard-float")))
foo(void)29 int foo(void) { return 1; }
30 __attribute__((target("ieee-fp")))
foo(void)31 int foo(void) { return 1; }
32 __attribute__((target("inline-all-stringops")))
foo(void)33 int foo(void) { return 1; }
34 __attribute__((target("inline-stringops-dynamically")))
foo(void)35 int foo(void) { return 1; }
36 __attribute__((target("intel-syntax")))
foo(void)37 int foo(void) { return 1; }
38 __attribute__((target("ms-bitfields")))
foo(void)39 int foo(void) { return 1; }
40 __attribute__((target("no-align-stringops")))
foo(void)41 int foo(void) { return 1; }
42 __attribute__((target("no-fancy-math-387")))
foo(void)43 int foo(void) { return 1; }
44 __attribute__((target("no-push-args")))
foo(void)45 int foo(void) { return 1; }
46 __attribute__((target("no-red-zone")))
foo(void)47 int foo(void) { return 1; }
48 __attribute__((target("omit-leaf-frame-pointer")))
foo(void)49 int foo(void) { return 1; }
50 __attribute__((target("pc32")))
foo(void)51 int foo(void) { return 1; }
52 __attribute__((target("pc64")))
foo(void)53 int foo(void) { return 1; }
54 __attribute__((target("pc80")))
foo(void)55 int foo(void) { return 1; }
56 __attribute__((target("push-args")))
foo(void)57 int foo(void) { return 1; }
58 __attribute__((target("red-zone")))
foo(void)59 int foo(void) { return 1; }
60 __attribute__((target("rtd")))
foo(void)61 int foo(void) { return 1; }
62 __attribute__((target("soft-float")))
foo(void)63 int foo(void) { return 1; }
64 __attribute__((target("sseregparm")))
foo(void)65 int foo(void) { return 1; }
66 __attribute__((target("stackrealign")))
foo(void)67 int foo(void) { return 1; }
68 __attribute__((target("stack-arg-probe")))
foo(void)69 int foo(void) { return 1; }
70 __attribute__((target("tls-direct-seg-refs")))
foo(void)71 int foo(void) { return 1; }
72 __attribute__((target("vect8-ret-in-mem")))
foo(void)73 int foo(void) { return 1; }
74 __attribute__((target("recip")))
foo(void)75 int foo(void) { return 1; }
76 __attribute__((target("cld")))
foo(void)77 int foo(void) { return 1; }
78 __attribute__((target("vzeroupper")))
foo(void)79 int foo(void) { return 1; }
80 __attribute__((target("dispatch-scheduler")))
foo(void)81 int foo(void) { return 1; }
82 __attribute__((target("prefer-avx128")))
foo(void)83 int foo(void) { return 1; }
84 __attribute__((target("prefer-vector-width=128")))
foo(void)85 int foo(void) { return 1; }
86 __attribute__((target("prefer-vector-width=256")))
foo(void)87 int foo(void) { return 1; }
88 __attribute__((target("32")))
foo(void)89 int foo(void) { return 1; }
90 __attribute__((target("64")))
foo(void)91 int foo(void) { return 1; }
92 __attribute__((target("x32")))
foo(void)93 int foo(void) { return 1; }
94 __attribute__((target("mmx")))
foo(void)95 int foo(void) { return 1; }
96 __attribute__((target("3dnow")))
foo(void)97 int foo(void) { return 1; }
98 __attribute__((target("3dnowa")))
foo(void)99 int foo(void) { return 1; }
100 __attribute__((target("sse")))
foo(void)101 int foo(void) { return 1; }
102 __attribute__((target("sse2")))
foo(void)103 int foo(void) { return 1; }
104 __attribute__((target("sse3")))
foo(void)105 int foo(void) { return 1; }
106 __attribute__((target("ssse3")))
foo(void)107 int foo(void) { return 1; }
108 __attribute__((target("sse4.1")))
foo(void)109 int foo(void) { return 1; }
110 __attribute__((target("sse4.2")))
foo(void)111 int foo(void) { return 1; }
112 __attribute__((target("sse4")))
foo(void)113 int foo(void) { return 1; }
114 __attribute__((target("no-sse4")))
foo(void)115 int foo(void) { return 1; }
116 __attribute__((target("sse5")))
foo(void)117 int foo(void) { return 1; }
118 __attribute__((target("avx")))
foo(void)119 int foo(void) { return 1; }
120 __attribute__((target("avx2")))
foo(void)121 int foo(void) { return 1; }
122 __attribute__((target("fma")))
foo(void)123 int foo(void) { return 1; }
124 __attribute__((target("sse4a")))
foo(void)125 int foo(void) { return 1; }
126 __attribute__((target("fma4")))
foo(void)127 int foo(void) { return 1; }
128 __attribute__((target("xop")))
foo(void)129 int foo(void) { return 1; }
130 __attribute__((target("lwp")))
foo(void)131 int foo(void) { return 1; }
132 __attribute__((target("abm")))
foo(void)133 int foo(void) { return 1; }
134 __attribute__((target("popcnt")))
foo(void)135 int foo(void) { return 1; }
136 __attribute__((target("bmi")))
foo(void)137 int foo(void) { return 1; }
138 __attribute__((target("bmi2")))
foo(void)139 int foo(void) { return 1; }
140 __attribute__((target("lzcnt")))
foo(void)141 int foo(void) { return 1; }
142 __attribute__((target("hle")))
foo(void)143 int foo(void) { return 1; }
144 __attribute__((target("rdseed")))
foo(void)145 int foo(void) { return 1; }
146 __attribute__((target("prfchw")))
foo(void)147 int foo(void) { return 1; }
148 __attribute__((target("adx")))
foo(void)149 int foo(void) { return 1; }
150 __attribute__((target("fxsr")))
foo(void)151 int foo(void) { return 1; }
152 __attribute__((target("xsave")))
foo(void)153 int foo(void) { return 1; }
154 __attribute__((target("xsaveopt")))
foo(void)155 int foo(void) { return 1; }
156 __attribute__((target("tbm")))
foo(void)157 int foo(void) { return 1; }
158 __attribute__((target("cx16")))
foo(void)159 int foo(void) { return 1; }
160 __attribute__((target("sahf")))
foo(void)161 int foo(void) { return 1; }
162 __attribute__((target("movbe")))
foo(void)163 int foo(void) { return 1; }
164 __attribute__((target("crc32")))
foo(void)165 int foo(void) { return 1; }
166 __attribute__((target("aes")))
foo(void)167 int foo(void) { return 1; }
168 __attribute__((target("pclmul")))
foo(void)169 int foo(void) { return 1; }
170 __attribute__((target("sse2avx")))
foo(void)171 int foo(void) { return 1; }
172 __attribute__((target("fsgsbase")))
foo(void)173 int foo(void) { return 1; }
174 __attribute__((target("rdrnd")))
foo(void)175 int foo(void) { return 1; }
176 __attribute__((target("f16c")))
foo(void)177 int foo(void) { return 1; }
178 __attribute__((target("fentry")))
foo(void)179 int foo(void) { return 1; }
180 __attribute__((target("8bit-idiv")))
foo(void)181 int foo(void) { return 1; }
182 __attribute__((target("avx256-split-unaligned-load")))
foo(void)183 int foo(void) { return 1; }
184 __attribute__((target("avx256-split-unaligned-store")))
foo(void)185 int foo(void) { return 1; }
186 __attribute__((target("rtm")))
foo(void)187 int foo(void) { return 1; }
188 //---------------
189 
190 #include <stdio.h>
main(void)191     int main (void)
192     {
193       int result;
194       result = foo();
195       printf("Result is %d\n", result);
196       return result;
197     }
198 
199 /* { dg-prune-output "attribute.* is unknown" } */
200 /* { dg-prune-output "missing 'target' attribute*" } */
201 /* { dg-prune-output "redefinition of 'int foo" } */
202 /* { dg-prune-output "ISA '.*' is not supported in 'target' attribute" } */
203