Add the PPC lfiwax instruction
authorHal Finkel <hfinkel@anl.gov>
Sun, 31 Mar 2013 10:12:51 +0000 (10:12 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 31 Mar 2013 10:12:51 +0000 (10:12 +0000)
commit8049ab15e4b638a07d6f230329945c2310eca27b
tree89ddcf3d670a9c7f4fafe2db694222cabdd48485
parent9ad0f4907b3ba0916a8b6cdb95d298d2ddb7d405
Add the PPC lfiwax instruction

This instruction is available on modern PPC64 CPUs, and is now used
to improve the SINT_TO_FP lowering (by eliminating the need for the
separate sign extension instruction and decreasing the amount of
needed stack space).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178446 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/i32-to-float.ll