[AArch64] Add f16 fpimm patterns
authorRosie Sumpter <rosie.sumpter@arm.com>
Wed, 20 Jul 2022 12:53:59 +0000 (13:53 +0100)
committerRosie Sumpter <rosie.sumpter@arm.com>
Mon, 25 Jul 2022 08:08:10 +0000 (09:08 +0100)
commit034a27e6882f0fd63eb0f128b0b124cd0c3a7301
tree9e037331db2c3f360946adcc27b1748f13332875
parent661e0b63f721832ab1015e32a4399470a625098f
[AArch64] Add f16 fpimm patterns

This patch recognizes f16 immediates as legal and adds the necessary
patterns. This allows the fadda folding introduced in 05d424d16563
to be applied to the f16 cases.

Differential Revision: https://reviews.llvm.org/D129989
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/test/CodeGen/AArch64/f16-imm.ll
llvm/test/CodeGen/AArch64/isinf.ll
llvm/test/CodeGen/AArch64/sve-fadda-select.ll
llvm/test/CodeGen/AArch64/sve-fp-reduce.ll
llvm/test/CodeGen/AArch64/sve-fptosi-sat.ll
llvm/test/CodeGen/AArch64/sve-fptoui-sat.ll