[AArch64][GlobalISel] Add new MOVI pattern for fp constants
authorzhongyunde <zhongyunde@huawei.com>
Tue, 29 Mar 2022 00:39:23 +0000 (08:39 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Tue, 29 Mar 2022 02:57:22 +0000 (10:57 +0800)
commit2b3becb41d2b3f2931f78643af23ce9a3842ab52
tree01a1b8444b10a3bb7c310bb92525126174c16491
parent12ba76c6d161e3217bc7bce58ab2f4a0e58e1395
[AArch64][GlobalISel] Add new MOVI pattern for fp constants

GlobalISel is used in option -O0, so add MOVI pattern for it,
which is done similar in gcc.(https://godbolt.org/z/8j6fzG3h6)

Fix https://github.com/llvm/llvm-project/issues/53651

Reviewed By: dmgreen, paquette

Differential Revision: https://reviews.llvm.org/D122559
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/fast-isel-const-float.ll [new file with mode: 0644]