[LoongArch] Add codegen support for handling floating point immediates
commitaeaca854d123d8a263722b7c80f55333f856d026
authorgonglingqin <gonglingqin@loongson.cn>
Wed, 6 Jul 2022 10:02:45 +0000 (6 18:02 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 7 Jul 2022 00:13:33 +0000 (7 08:13 +0800)
tree0394f34e86d0b80c4e9cd1031595fc1d8ff4e598
parenta3ac6891f8c48ac21bb154323a860475e32158f6
[LoongArch] Add codegen support for handling floating point immediates

Differential Revision: https://reviews.llvm.org/D128898
llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
llvm/lib/Target/LoongArch/LoongArchFloat64InstrInfo.td
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/lib/Target/LoongArch/LoongArchMCInstLower.cpp
llvm/test/CodeGen/LoongArch/double-imm.ll [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/float-imm.ll [new file with mode: 0644]