mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 19:17:43 +00:00
Rollup merge of #100622 - taiki-e:aarch64-atomic-128, r=Amanieu
Support 128-bit atomics on all aarch64 targets Some aarch64 targets currently set `max_atomic_width` to 64, but aarch64 always supports 128-bit atomics. r? `@Amanieu`
This commit is contained in:
commit
35bd1d64cf
@ -2,7 +2,7 @@ use crate::spec::Target;
|
|||||||
|
|
||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = super::windows_gnullvm_base::opts();
|
let mut base = super::windows_gnullvm_base::opts();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(128);
|
||||||
base.features = "+neon,+fp-armv8".into();
|
base.features = "+neon,+fp-armv8".into();
|
||||||
base.linker = Some("aarch64-w64-mingw32-clang".into());
|
base.linker = Some("aarch64-w64-mingw32-clang".into());
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ use crate::spec::Target;
|
|||||||
|
|
||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = super::windows_msvc_base::opts();
|
let mut base = super::windows_msvc_base::opts();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(128);
|
||||||
base.features = "+neon,+fp-armv8".into();
|
base.features = "+neon,+fp-armv8".into();
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
|
@ -7,7 +7,7 @@ use crate::spec::{LinkerFlavor, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = uefi_msvc_base::opts();
|
let mut base = uefi_msvc_base::opts();
|
||||||
|
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(128);
|
||||||
base.add_pre_link_args(LinkerFlavor::Msvc, &["/machine:arm64"]);
|
base.add_pre_link_args(LinkerFlavor::Msvc, &["/machine:arm64"]);
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
|
@ -2,7 +2,7 @@ use crate::spec::Target;
|
|||||||
|
|
||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = super::windows_uwp_msvc_base::opts();
|
let mut base = super::windows_uwp_msvc_base::opts();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(128);
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "aarch64-pc-windows-msvc".into(),
|
llvm_target: "aarch64-pc-windows-msvc".into(),
|
||||||
|
@ -10,7 +10,7 @@ pub fn target() -> Target {
|
|||||||
arch: "aarch64".into(),
|
arch: "aarch64".into(),
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
features: "+neon,+fp-armv8,+apple-a7".into(),
|
features: "+neon,+fp-armv8,+apple-a7".into(),
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(128),
|
||||||
forces_embed_bitcode: true,
|
forces_embed_bitcode: true,
|
||||||
// These arguments are not actually invoked - they just have
|
// These arguments are not actually invoked - they just have
|
||||||
// to look right to pass App Store validation.
|
// to look right to pass App Store validation.
|
||||||
|
Loading…
Reference in New Issue
Block a user