Rustc doesn't detect target_feature=aes with -C target-cpu=native (broadwell) #67836
Labels
C-bug
Category: This is a bug.
O-x86_64
Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried to compile my code with
-C target-cpu=native
, some of it being gated bycfg(target_feature = "aes")
. I was expecting the AES code to be compiled as my CPU supports it, but rustc didn't enabletarget_feature = "aes"
.According to
/proc/cpuinfo
, my CPU supports AES-NI.With the latest Rust nightly:
Rustc detects a broadwell CPU:
The features detected by
-C target-cpu=native
are the following (I get the same result with-C target-cpu=broadwell
). I didn't check whether anything else was missing, but there is no mention of aes.The text was updated successfully, but these errors were encountered: