<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58545>58545</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Build spits out lots of warnings with '-amxfp16' is not a recognized feature for this target (ignoring feature) on Haswell-EP
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ms178
</td>
</tr>
</table>
<pre>
Compiling llvm-git (b483349c5f4f), I've noticed a lot of these `'-amxfp16' is not a recognized feature for this target (ignoring feature)` warnings when building the compiler-rt and openmp runtime.
This is on a Haswell-EP CPU, with march=native set in my flags. This CPU doesn't support AMX, but it seems to me that it is set somewhere automatically albeit I did not specify it?! Or there is something wrong with the warning.
After all it doesn't make sense to set that feature flag on Haswell-EP as the CPU is quite old and doesn't support it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU0uPmzAQ_jXmMgoC8wg5cMhmu-oequ6hlXo1MAa3flDbbJr--o7pqrtVr0WBGHtmvscMg5tu_cWZVWllZ9D62RxmFYHxbqi7qqpPYyNryfiJ8Qs8Mn58RrAuqhEnEKBdBCchLhgQWFvQ-UGYH3ItW1qCCimW4jyObrbqJyVJFHHzCNJ5yqOIKPyMO6KarfOJxktMQm0LuApvaTfAdUELw6b0lIIIFMadOfqDJxQ7gVvRmhX8ZqMymLPinhXn389PCYt-zhKf9yJcUevDuye4PH1O0q4qLmCEHxdW3VsRFekMREtZMDeQWswhh70GJcDkMFhSGCFs6-oI_fzhSyozbJRCu4iGlDkwSDzFvkepqWBwBkkIOSC26AwhjULrGwg9IEU9wqSm3bWw4qjkjVJZ9cB4CR-TYSkxVaIq5B7ZcPUuPRP95MiLWTm81X6WET0h6MTjlbsR35JIS70jqonczvVPh0h0suuNWSLsIMkCIvF9UxHB6Wn3_l9PVMwz7Mu2bevq1B6bbOqr6VSdRBZV1NjfpVaSThWpLWQcTVNI4_Ta8KTqv8_U35qyzet-iXENrDozTk4_0AewbENOw0Uv6ZN4-Tus3n3FMdKrCmHDQIuma-omW3o5NWPFeSFawStZSV7WsqNrnDgv5ZFnWgyoQ8-aO8a5xSvsJWjNmvtM9byguHSXTV01ORlWDh3vJl7hsUVkdYFGKJ0nHrnzc-b7ndKwzYEOtQoxvB6KEEg44g5H9WnUFud7E8pjl-3A_U78F3J-VNs">