rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.74k stars 12.5k forks source link

Tracking Issue for `XOP` target feature #127208

Open sayantn opened 2 months ago

sayantn commented 2 months ago

The feature gate for this issue is #[feature(xop_target_feature)].

This tracks the integration of AMD's XOP instruction set into Rust.

Steps

Public API

The xop target-feature and its runtime detection

Implementation History

VorpalBlade commented 2 months ago

What is the point in supporting this? Apparently it was only ever supported on Buldozer (and other derived follows up like Piledriver etc), and was removed on Zen and later. So it seems largely like a historic curiosity of little use to anyone, with similar relevance as 3DNow.

sayantn commented 2 months ago

That is true. I just saw that it was a major x86 target feature left unimplemented, so decided to start a pr. Also, a small addition like this shouldn't hurt.