[AArch64] Add missing HasNEON predicate in scalar FABD patterns
authorAlex Richardson <alexrichardson@google.com>
Tue, 12 Apr 2022 20:59:41 +0000 (20:59 +0000)
committerAlex Richardson <alexrichardson@google.com>
Wed, 13 Apr 2022 09:30:11 +0000 (09:30 +0000)
commitee44896cf42d3360f7e0229c360258c92262a47b
tree69d87cdf63c15490e8210c8e2d11f738780822d5
parent32a353a5e08628403422a1f71e6500bc1f68e8fb
[AArch64] Add missing HasNEON predicate in scalar FABD patterns

I was trying to compile with -march=+nosimd and hit the following assertion:
`Attempting to emit FABD64 instruction but the Feature_HasNEON predicate(s) are not met`.
This adds a HasNEON predicate to the patterns which was omitted in commit
21d9b33d62772c58267cc0aa725e35ac9a4661db for some reason.
The new code generation matches GCC with -mcpu=<cpu>+nosimd:
https://godbolt.org/z/n1Y7xh5jo

Differential Revision: https://reviews.llvm.org/D123491
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/fabd-no-neon.ll