summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-07-10 12:38:08 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-07-10 12:38:08 +0000
commit5655fb320c407f206e17d47b9bdd6a302f6abfaf (patch)
treec2aace24688ad2ac8d3a1d0d81cd1942ade599e0 /llvm
parent3cfdf2043c6e750236859dcef44c26034faf4893 (diff)
downloadbcm5719-llvm-5655fb320c407f206e17d47b9bdd6a302f6abfaf.tar.gz
bcm5719-llvm-5655fb320c407f206e17d47b9bdd6a302f6abfaf.zip
Add missing builtins to the PPC back end for ABI compliance (vol. 3)
This patch corresponds to review: http://reviews.llvm.org/D10973 Back end portion of the third round of additions to altivec.h. llvm-svn: 241900
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/IntrinsicsPowerPC.td3
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrVSX.td2
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/IntrinsicsPowerPC.td b/llvm/include/llvm/IR/IntrinsicsPowerPC.td
index 630f89a0bdd..f708f803c05 100644
--- a/llvm/include/llvm/IR/IntrinsicsPowerPC.td
+++ b/llvm/include/llvm/IR/IntrinsicsPowerPC.td
@@ -719,6 +719,9 @@ def int_ppc_vsx_xvcmpgtdp :
def int_ppc_vsx_xvcmpgtsp :
PowerPC_VSX_Intrinsic<"xvcmpgtsp", [llvm_v4i32_ty],
[llvm_v4f32_ty, llvm_v4f32_ty], [IntrNoMem]>;
+def int_ppc_vsx_xxleqv :
+ PowerPC_VSX_Intrinsic<"xxleqv", [llvm_v4i32_ty],
+ [llvm_v4i32_ty, llvm_v4i32_ty], [IntrNoMem]>;
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/Target/PowerPC/PPCInstrVSX.td b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
index 3cb67deacbf..544f69f9780 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrVSX.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
@@ -1018,6 +1018,8 @@ let AddedComplexity = 400 in { // Prefer VSX patterns over non-VSX patterns.
[(set v4i32:$XT, (vnot_ppc (and v4i32:$XA,
v4i32:$XB)))]>;
} // isCommutable
+ def : Pat<(int_ppc_vsx_xxleqv v4i32:$A, v4i32:$B),
+ (XXLEQV $A, $B)>;
def XXLORC : XX3Form<60, 170,
(outs vsrc:$XT), (ins vsrc:$XA, vsrc:$XB),
OpenPOWER on IntegriCloud