From dbc78e1f736c92102aa66c28286c176d00e4f60c Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Mon, 19 Aug 2013 05:01:02 +0000 Subject: Add the PPC fcpsgn instruction Modern PPC cores support a floating-point copysign instruction, and we can use this to lower the FCOPYSIGN node (which is created from calls to the libm copysign function). A couple of extra patterns are necessary because the operand types of FCOPYSIGN need not agree. llvm-svn: 188653 --- llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp') diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index 12d0326855c..f975f5539c3 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -74,6 +74,7 @@ void PPCSubtarget::initializeEnvironment() { Use64BitRegs = false; HasAltivec = false; HasQPX = false; + HasFCPSGN = false; HasFSQRT = false; HasFRE = false; HasFRES = false; -- cgit v1.2.3