summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-07-05 06:03:51 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-07-05 06:03:51 +0000
commitd358b8f80d50df6ded99fc03c35452c19ad36c3d (patch)
tree288786fbca5ffc4b68d94059752cc3309203ff10 /llvm/lib/Target/PowerPC
parent2b82d5f8ca29dc6e89b65fa92a7792ff3f166f8c (diff)
downloadbcm5719-llvm-d358b8f80d50df6ded99fc03c35452c19ad36c3d.tar.gz
bcm5719-llvm-d358b8f80d50df6ded99fc03c35452c19ad36c3d.zip
Add missing builtins to the PPC back end for ABI compliance (vol. 2)
This patch corresponds to review: http://reviews.llvm.org/D10874 Back end portion of the second round of additions to altivec.h. llvm-svn: 241398
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrVSX.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrVSX.td b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
index 43ba4994fde..3cb67deacbf 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrVSX.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
@@ -989,6 +989,12 @@ def : Pat<(int_ppc_vsx_xvdivsp v4f32:$A, v4f32:$B),
def : Pat<(int_ppc_vsx_xvdivdp v2f64:$A, v2f64:$B),
(XVDIVDP $A, $B)>;
+// Recip. square root estimate
+def : Pat<(int_ppc_vsx_xvrsqrtesp v4f32:$A),
+ (XVRSQRTESP $A)>;
+def : Pat<(int_ppc_vsx_xvrsqrtedp v2f64:$A),
+ (XVRSQRTEDP $A)>;
+
} // AddedComplexity
} // HasVSX
OpenPOWER on IntegriCloud