gas/aarch64: Allow movprfx with bfmmla, sve-f16mm fmmla
Fixes the gas assembler to correctly handle the 'movprfx' instruction with specific Advanced SIMD and SVE floating-point multiplication-accumulation instructio…
This patch corrects an issue in the AArch64 assembler (gas) where the ‘movprfx’ instruction was not correctly allowed in conjunction with ‘bfmmla’ and ‘sve-f16mm fmmla’ instructions. The fix involves updating opcode tables and adding test cases to ensure proper assembly of these instruction sequences. The author notes a recurring nature to similar mistakes with new instructions.
- proposer
Acknowledges a previous error and provides a fix, noting a pattern of similar mistakes with new instructions. The patch updates opcode tables and adds test cases for 'movprfx' with 'bfmmla' and 'sve-f16mm fmmla'.
“Oops - ok, thanks! (I'm getting a sense of déjà vu here - because it seems we made the same mistake with new b?mmla instructions two years running. I'll have to keep an eye out for that next year.)”
In Details
This change targets the gas assembler's AArch64 backend. Specifically, it corrects the handling of the movprfx instruction when used with certain Advanced SIMD (SVE) floating-point multiplication-accumulation instructions (bfmmla, sve-f16mm fmmla). The issue was that these SVE instructions were incorrectly disallowed after a movprfx, leading to assembly errors or incorrect code generation. The fix updates the AArch64 instruction tables and adds relevant test cases.
- AArch64
- The 64-bit ARM architecture, used in modern mobile devices and servers.
- gas
- The GNU Assembler, part of the GNU Binutils project, responsible for converting assembly code into machine code.
- movprfx
- A prefix instruction in ARM assembly that conditionally moves a register's value based on a condition code. It's often used to optimize instruction sequences.
- bfmmla
- An AArch64 Advanced SIMD instruction for performing fused multiply-accumulate operations on BFloat16 data.
- sve-f16mm
- Refers to Scalable Vector Extension (SVE) instructions for performing fused multiply-accumulate operations with 16-bit floating-point (F16) data.