aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IntrinsicsPowerPC.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-04 23:13:21 +0000
committerChris Lattner <sabre@nondot.org>2006-04-04 23:13:21 +0000
commit8d1aa574294cd06a73b0a214c2ddad3e5276b99d (patch)
tree4f71aae1aa84053e3c113aa30d4dd27668552c36 /include/llvm/IntrinsicsPowerPC.td
parent298b68422956ec6f640f508bf089110674418ca6 (diff)
downloadexternal_llvm-8d1aa574294cd06a73b0a214c2ddad3e5276b99d.zip
external_llvm-8d1aa574294cd06a73b0a214c2ddad3e5276b99d.tar.gz
external_llvm-8d1aa574294cd06a73b0a214c2ddad3e5276b99d.tar.bz2
add average intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicsPowerPC.td')
-rw-r--r--include/llvm/IntrinsicsPowerPC.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/IntrinsicsPowerPC.td b/include/llvm/IntrinsicsPowerPC.td
index affc4ec..f918d7a 100644
--- a/include/llvm/IntrinsicsPowerPC.td
+++ b/include/llvm/IntrinsicsPowerPC.td
@@ -186,6 +186,14 @@ let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.".
[InstrNoMem]>;
}
+// Vector average.
+def int_ppc_altivec_vavgsb : PowerPC_Vec_BBB_Intrinsic<"vavgsb">;
+def int_ppc_altivec_vavgsh : PowerPC_Vec_HHH_Intrinsic<"vavgsh">;
+def int_ppc_altivec_vavgsw : PowerPC_Vec_WWW_Intrinsic<"vavgsw">;
+def int_ppc_altivec_vavgub : PowerPC_Vec_BBB_Intrinsic<"vavgub">;
+def int_ppc_altivec_vavguh : PowerPC_Vec_HHH_Intrinsic<"vavguh">;
+def int_ppc_altivec_vavguw : PowerPC_Vec_WWW_Intrinsic<"vavguw">;
+
// Vector maximum.
def int_ppc_altivec_vmaxfp : PowerPC_Vec_FFF_Intrinsic<"vmaxfp">;
def int_ppc_altivec_vmaxsb : PowerPC_Vec_BBB_Intrinsic<"vmaxsb">;