comparison gcc/testsuite/g++.target/i386/pr57362.C @ 145:1830386684a0

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