]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/thumbv7neon_unknown_linux_gnueabihf.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / thumbv7neon_unknown_linux_gnueabihf.rs
CommitLineData
29967ef6 1use crate::spec::{Target, TargetOptions};
0731742a
XL
2
3// This target is for glibc Linux on ARMv7 with thumb mode enabled
4// (for consistency with Android and Debian-based distributions)
5// and with NEON unconditionally enabled and, therefore, with 32 FPU
6// registers enabled as well. See section A2.6.2 on page A2-56 in
7// https://static.docs.arm.com/ddi0406/cd/DDI0406C_d_armv7ar_arm.pdf
8
29967ef6 9pub fn target() -> Target {
29967ef6 10 Target {
5e7ed085 11 llvm_target: "armv7-unknown-linux-gnueabihf".into(),
29967ef6 12 pointer_width: 32,
5e7ed085
FG
13 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
14 arch: "arm".into(),
0731742a 15 options: TargetOptions {
5e7ed085 16 abi: "eabihf".into(),
0731742a 17 // Info about features at https://wiki.debian.org/ArmHardFloatPort
5e7ed085 18 features: "+v7,+thumb-mode,+thumb2,+vfp3,+neon".into(),
0731742a 19 max_atomic_width: Some(64),
136023e0 20 ..super::linux_gnu_base::opts()
dfeec247 21 },
29967ef6 22 }
0731742a 23}