66// Additionally, this target uses the "hard" floating convention (ABI) where floating point values
77// are passed to/from subroutines via FPU registers (S0, S1, D0, D1, etc.).
88//
9- // To opt into double precision hardware support, use the `-C target-feature=-fp-only-sp ` flag.
9+ // To opt into double precision hardware support, use the `-C target-feature=+fp64 ` flag.
1010
1111use crate :: spec:: { LinkerFlavor , LldFlavor , Target , TargetOptions , TargetResult } ;
1212
@@ -26,14 +26,14 @@ pub fn target() -> TargetResult {
2626 options : TargetOptions {
2727 // `+vfp4` is the lowest common denominator between the Cortex-M4 (vfp4-16) and the
2828 // Cortex-M7 (vfp5)
29- // `+d16 ` both the Cortex-M4 and the Cortex-M7 only have 16 double-precision registers
29+ // `-d32 ` both the Cortex-M4 and the Cortex-M7 only have 16 double-precision registers
3030 // available
31- // `+fp-only-sp ` The Cortex-M4 only supports single precision floating point operations
31+ // `-fp64 ` The Cortex-M4 only supports single precision floating point operations
3232 // whereas in the Cortex-M7 double precision is optional
3333 //
3434 // Reference:
3535 // ARMv7-M Architecture Reference Manual - A2.5 The optional floating-point extension
36- features : "+vfp4,+d16,+fp-only-sp " . to_string ( ) ,
36+ features : "+vfp4,-d32,-fp64 " . to_string ( ) ,
3737 max_atomic_width : Some ( 32 ) ,
3838 .. super :: thumb_base:: opts ( )
3939 }
0 commit comments