]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #103750 - calebzulawski:master, r=workingjubilee
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 16 Nov 2022 14:39:44 +0000 (15:39 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 14:39:44 +0000 (15:39 +0100)
Fix some misleading target feature aliases

This is the first half of a fix for #100752.  It looks like these aliases were added in #78361 and slipped under the radar, as these features are not AVX512.  These features _do_ add AVX512 instructions when used _in combination_ with AVX512F, but without AVX512F, these features still provide 128-bit and 256-bit vector instructions.  A user might be mislead into thinking these features imply AVX512F (which is true of the actual AVX512 features).  This PR allows using the names as defined by LLVM, which matches Intel documentation.

A future PR should change the `std::arch` intrinsics to use these names, and finally remove these aliases from rustc.

r? ```@workingjubilee```

cc ```@Amanieu```


Trivial merge