Find out what features are supported by what CPU

Thanks, this is also very useful! Is this stuff documented anywhere in the rust-lang docs? And I presume CPU features do not vary across the OS part of a target triple, is that a safe assumption?

After comparing a list based on LLVM sources compared to what rustc --print cfg -C target-cpu=native gives me on skylake, quite a few things are missing (like x87, lahfsah or ermsb) from the output of the rustc command. I also see some inconsistency between the list printed by rustc for print --target-features vs print --cfg (like bmi vs bmi1 and pclmulqdq), any thoughts on that?