rust/src/test/ui/asm
Dylan DPC 67d6cc6ef3
Rollup merge of #91608 - workingjubilee:fold-neon-fp, r=nagisa,Amanieu
Fold aarch64 feature +fp into +neon

Arm's FEAT_FP and Feat_AdvSIMD describe the same thing on AArch64:
The Neon unit, which handles both floating point and SIMD instructions.
Moreover, a configuration for AArch64 must include both or neither.
Arm says "entirely proprietary" toolchains may omit floating point:
https://developer.arm.com/documentation/102374/0101/Data-processing---floating-point
In the Programmer's Guide for Armv8-A, Arm says AArch64 can have
both FP and Neon or neither in custom implementations:
https://developer.arm.com/documentation/den0024/a/AArch64-Floating-point-and-NEON

In "Bare metal boot code for Armv8-A", enabling Neon and FP
is just disabling the same trap flag:
https://developer.arm.com/documentation/dai0527/a

In an unlikely future where "Neon and FP" become unrelated,
we can add "[+-]fp" as its own feature flag.
Until then, we can simplify programming with Rust on AArch64 by
folding both into "[+-]neon", which is valid as it supersets both.

"[+-]neon" is retained for niche uses such as firmware, kernels,
"I just hate floats", and so on.

I am... pretty sure no one is relying on this.

An argument could be made that, as we are not an "entirely proprietary" toolchain, we should not support AArch64 without floats at all. I think that's a bit excessive. However, I want to recognize the intent: programming for AArch64 should be simplified where possible. For x86-64, programmers regularly set up illegal feature configurations because it's hard to understand them, see https://github.com/rust-lang/rust/issues/89586. And per the above notes, plus the discussion in https://github.com/rust-lang/rust/issues/86941, there should be no real use cases for leaving these features split: the two should in fact always go together.

- Fixes rust-lang/rust#95002.
- Fixes rust-lang/rust#95064.
- Fixes rust-lang/rust#95122.
2022-03-23 03:05:28 +01:00
..
aarch64 Rollup merge of #91608 - workingjubilee:fold-neon-fp, r=nagisa,Amanieu 2022-03-23 03:05:28 +01:00
x86_64 Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
bad-arch.mirunsafeck.stderr Bless tests 2021-10-15 02:36:58 -05:00
bad-arch.rs Add tests where asm! is properly in unsafe block 2021-05-14 09:22:30 -04:00
bad-arch.thirunsafeck.stderr Bless tests 2021-10-15 02:36:58 -05:00
bad-template.aarch64_mirunsafeck.stderr Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
bad-template.aarch64_thirunsafeck.stderr Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
bad-template.rs Add features gates for experimental asm features 2021-11-07 01:23:53 +00:00
bad-template.x86_64_mirunsafeck.stderr Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
bad-template.x86_64_thirunsafeck.stderr Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
inline-syntax.arm.stderr Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
inline-syntax.rs Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
inline-syntax.x86_64.stderr Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
issue-72570.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
issue-72570.stderr add test for #72960 2020-06-05 12:08:54 +02:00
issue-85247.rs Add tests 2022-02-21 18:28:22 +00:00
issue-85247.rwpi.stderr Add tests 2022-02-21 18:28:22 +00:00
issue-87802.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
issue-87802.stderr Disable some tests for platforms without registers. 2021-09-24 17:00:57 +00:00
issue-89305.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
issue-89305.stderr Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
issue-92378.rs Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
may_unwind.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
naked-functions-ffi.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
naked-functions-ffi.stderr Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
naked-functions-unused.aarch64.stderr Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
naked-functions-unused.rs Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
naked-functions-unused.x86_64.stderr Add needs-asm-support directive to tests where necessary 2022-03-21 18:48:24 +01:00
naked-functions.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
naked-functions.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
naked-invalid-attr.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
naked-invalid-attr.stderr Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
named-asm-labels.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
named-asm-labels.s Fix lint capitalization and ignoring, test with include_str 2021-08-04 13:38:17 -04:00
named-asm-labels.stderr Add links to the reference and rust by example for asm! docs and lints 2022-01-19 20:00:10 +00:00
noreturn.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
reg-conflict.rs Fix incorrect register conflict detection in asm! 2022-02-10 18:04:09 +00:00
reg-conflict.stderr Fix incorrect register conflict detection in asm! 2022-02-10 18:04:09 +00:00
type-check-1.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
type-check-1.stderr Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
type-check-4.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
type-check-4.stderr Bless tests 2021-10-15 02:36:58 -05:00