[AArch64][GlobalISel] Select FCMPSri/FCMPDri when comparing against 0.0
authorJessica Paquette <jpaquette@apple.com>
Tue, 28 May 2019 22:52:49 +0000 (22:52 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 28 May 2019 22:52:49 +0000 (22:52 +0000)
commitb73ea75b384df86d6db36aff02e7f5e5f744c48d
treedd2d0ab0306e574ac4f5fb476d05c2cfab5f0cae
parent1efbe67414fd66e74050fb02100f04265e0a51ae
[AArch64][GlobalISel] Select FCMPSri/FCMPDri when comparing against 0.0

Add support for selecting FCMPSri and FCMPDri when comparing against 0.0, and
factor out opcode selection for G_FCMP into its own function.

Add a test to show that we don't do this with other immediates.

Differential Revision: https://reviews.llvm.org/D62539

llvm-svn: 361888
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-fcmp.mir [new file with mode: 0644]