Lines 1131-1275
local rule cpu-flags ( toolset variable : architecture : instruction-set + :
Link Here
|
1131 |
# x86 and compatible |
1131 |
# x86 and compatible |
1132 |
# The 'native' option appeared in gcc 4.2 so we cannot safely use it as default. |
1132 |
# The 'native' option appeared in gcc 4.2 so we cannot safely use it as default. |
1133 |
# Use i686 instead for 32-bit. |
1133 |
# Use i686 instead for 32-bit. |
1134 |
toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ; |
|
|
1135 |
cpu-flags gcc OPTIONS : x86 : native : -march=native ; |
1136 |
cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ; |
1137 |
cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ; |
1138 |
cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ; |
1139 |
cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ; |
1140 |
cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ; |
1141 |
cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ; |
1142 |
cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ; |
1143 |
cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ; |
1144 |
cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ; |
1145 |
cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ; |
1146 |
cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ; |
1147 |
cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ; |
1148 |
cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ; |
1149 |
cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ; |
1150 |
cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ; |
1151 |
cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ; |
1152 |
cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ; |
1153 |
cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ; |
1154 |
cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ; |
1155 |
cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ; |
1156 |
cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ; |
1157 |
cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ; |
1158 |
cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ; |
1159 |
cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ; |
1160 |
cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ; |
1161 |
cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ; |
1162 |
cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ; |
1163 |
cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ; |
1164 |
cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ; |
1165 |
cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ; |
1166 |
cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ; |
1167 |
cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ; |
1168 |
cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ; |
1169 |
cpu-flags gcc OPTIONS : x86 : broadwell : -march=broadwell ; |
1170 |
cpu-flags gcc OPTIONS : x86 : skylake : -march=skylake ; |
1171 |
cpu-flags gcc OPTIONS : x86 : skylake-avx512 : -march=skylake-avx512 ; |
1172 |
cpu-flags gcc OPTIONS : x86 : cannonlake : -march=skylake-avx512 -mavx512vbmi -mavx512ifma -msha ; |
1173 |
cpu-flags gcc OPTIONS : x86 : icelake-client : -march=icelake-client ; |
1174 |
cpu-flags gcc OPTIONS : x86 : icelake-server : -march=icelake-server ; |
1175 |
cpu-flags gcc OPTIONS : x86 : cascadelake : -march=skylake-avx512 -mavx512vnni ; |
1176 |
cpu-flags gcc OPTIONS : x86 : cooperlake : -march=cooperlake ; |
1177 |
cpu-flags gcc OPTIONS : x86 : tigerlake : -march=tigerlake ; |
1178 |
cpu-flags gcc OPTIONS : x86 : rocketlake : -march=rocketlake ; |
1179 |
cpu-flags gcc OPTIONS : x86 : alderlake : -march=alderlake ; |
1180 |
cpu-flags gcc OPTIONS : x86 : sapphirerapids : -march=sapphirerapids ; |
1181 |
cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ; |
1182 |
cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ; |
1183 |
cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ; |
1184 |
cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ; |
1185 |
cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ; |
1186 |
cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ; |
1187 |
cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ; |
1188 |
cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ; |
1189 |
## |
1134 |
## |
1190 |
cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ; |
|
|
1191 |
cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ; |
1192 |
cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ; |
1193 |
cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ; |
1194 |
cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ; |
1195 |
cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ; |
1196 |
cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ; |
1197 |
cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ; |
1198 |
cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ; |
1199 |
cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ; |
1200 |
cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ; |
1201 |
cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ; |
1202 |
cpu-flags gcc OPTIONS : x86 : bdver4 : -march=bdver4 ; |
1203 |
cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ; |
1204 |
cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ; |
1205 |
cpu-flags gcc OPTIONS : x86 : znver1 : -march=znver1 ; |
1206 |
cpu-flags gcc OPTIONS : x86 : znver2 : -march=znver2 ; |
1207 |
cpu-flags gcc OPTIONS : x86 : znver3 : -march=znver3 ; |
1208 |
cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ; |
1209 |
cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ; |
1210 |
cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ; |
1211 |
cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ; |
1212 |
cpu-flags gcc OPTIONS : x86 : c7 : -march=c7 ; |
1213 |
## |
1135 |
## |
1214 |
cpu-flags gcc OPTIONS : x86 : atom : -march=atom ; |
|
|
1215 |
# Sparc |
1136 |
# Sparc |
1216 |
cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ; |
|
|
1217 |
cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ; |
1218 |
cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ; |
1219 |
cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ; |
1220 |
cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ; |
1221 |
cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ; |
1222 |
cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ; |
1223 |
cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ; |
1224 |
cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ; |
1225 |
cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ; |
1226 |
cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ; |
1227 |
cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ; |
1228 |
cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ; |
1229 |
cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ; |
1230 |
# RS/6000 & PowerPC |
1137 |
# RS/6000 & PowerPC |
1231 |
cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ; |
|
|
1232 |
cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ; |
1233 |
cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ; |
1234 |
cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ; |
1235 |
cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ; |
1236 |
cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ; |
1237 |
cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ; |
1238 |
cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ; |
1239 |
cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ; |
1240 |
cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ; |
1241 |
cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ; |
1242 |
cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ; |
1243 |
cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ; |
1244 |
cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ; |
1245 |
cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ; |
1246 |
cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ; |
1247 |
cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ; |
1248 |
cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ; |
1249 |
cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ; |
1250 |
cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ; |
1251 |
cpu-flags gcc OPTIONS : power : power : -mcpu=power ; |
1252 |
cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ; |
1253 |
cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ; |
1254 |
cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ; |
1255 |
cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ; |
1256 |
cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ; |
1257 |
cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ; |
1258 |
cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ; |
1259 |
cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ; |
1260 |
cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ; |
1261 |
cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ; |
1262 |
cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ; |
1263 |
cpu-flags gcc OPTIONS : s390x : z196 : -march=z196 ; |
1264 |
cpu-flags gcc OPTIONS : s390x : zEC12 : -march=zEC12 ; |
1265 |
cpu-flags gcc OPTIONS : s390x : z13 : -march=z13 ; |
1266 |
cpu-flags gcc OPTIONS : s390x : z14 : -march=z14 ; |
1267 |
cpu-flags gcc OPTIONS : s390x : z15 : -march=z15 ; |
1268 |
# ARM |
1138 |
# ARM |
1269 |
cpu-flags gcc OPTIONS : arm : cortex-a9+vfpv3 : -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard ; |
|
|
1270 |
cpu-flags gcc OPTIONS : arm : cortex-a53 : -mcpu=cortex-a53 ; |
1271 |
cpu-flags gcc OPTIONS : arm : cortex-r5 : -mcpu=cortex-r5 ; |
1272 |
cpu-flags gcc OPTIONS : arm : cortex-r5+vfpv3-d16 : -mcpu=cortex-r5 -mfpu=vfpv3-d16 -mfloat-abi=hard ; |
1273 |
# AIX variant of RS/6000 & PowerPC |
1139 |
# AIX variant of RS/6000 & PowerPC |
1274 |
toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ; |
1140 |
toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ; |
1275 |
|
1141 |
|