From 3f0b7ff39fcf50fc2b57718cd2264137f11614b6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Apr 2006 23:14:00 +0000 Subject: [PATCH] add average intrinsics git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27416 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrAltivec.td | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Target/PowerPC/PPCInstrAltivec.td b/lib/Target/PowerPC/PPCInstrAltivec.td index 85a9fdfa7b9..9eb18c3724d 100644 --- a/lib/Target/PowerPC/PPCInstrAltivec.td +++ b/lib/Target/PowerPC/PPCInstrAltivec.td @@ -209,6 +209,13 @@ def VCTUXS : VXForm_1<906, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB), def VEXPTEFP : VX2_Int<394, "vexptefp", int_ppc_altivec_vexptefp>; def VLOGEFP : VX2_Int<458, "vlogefp", int_ppc_altivec_vlogefp>; +def VAVGSB : VX1_Int<1282, "vavgsb", int_ppc_altivec_vavgsb>; +def VAVGSH : VX1_Int<1346, "vavgsh", int_ppc_altivec_vavgsh>; +def VAVGSW : VX1_Int<1410, "vavgsw", int_ppc_altivec_vavgsw>; +def VAVGUB : VX1_Int<1026, "vavgub", int_ppc_altivec_vavgub>; +def VAVGUH : VX1_Int<1090, "vavguh", int_ppc_altivec_vavguh>; +def VAVGUW : VX1_Int<1154, "vavguw", int_ppc_altivec_vavguw>; + def VMAXFP : VX1_Int<1034, "vmaxfp", int_ppc_altivec_vmaxfp>; def VMAXSB : VX1_Int< 258, "vmaxsb", int_ppc_altivec_vmaxsb>; def VMAXSH : VX1_Int< 322, "vmaxsh", int_ppc_altivec_vmaxsh>;