about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2024-07-17 10:07:17 -0400
committerAugie Fackler <augie@google.com>2024-07-17 11:45:02 -0400
commit72e22554caa473df6af10f0ab6c3c7c7c5ef8841 (patch)
tree877105884e2f1fe5fbaa38496b3459668d1ddd3c
parenta91f7d72f12efcc00ecf71591f066c534d45ddf7 (diff)
downloadrust-72e22554caa473df6af10f0ab6c3c7c7c5ef8841.tar.gz
rust-72e22554caa473df6af10f0ab6c3c7c7c5ef8841.zip
cleanup: remove support for 3DNow! cpu features
In llvm/llvm-project@f0eb5587ceeb641445b64cb264c822b4751de04a all
support for 3DNow! intrinsics and instructions were removed. Per the commit message
there, only AMD chips between 1998 and 2011 or so actually supported
these instructions, and they were effectively replaced by SSE which was
available on many more chips. I'd be very surprised if anyone had ever
used these from Rust.
-rw-r--r--compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
index 4c67fa0f7aa..549706998d4 100644
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
@@ -18,9 +18,7 @@ pub fn target() -> Target {
         relro_level: RelroLevel::Full,
         linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
         linker: Some("rust-lld".into()),
-        features:
-            "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
-                .into(),
+        features: "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,+soft-float".into(),
         supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
         disable_redzone: true,
         panic_strategy: PanicStrategy::Abort,