[llvm-commits] CVS: llvm/include/llvm/Intrinsics.td
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 24 23:27:31 PST 2006
Changes in directory llvm/include/llvm:
Intrinsics.td updated: 1.23 -> 1.24
---
Log message:
Add a bunch of simple altivec intrinsics
---
Diffs of the changes: (+36 -1)
Intrinsics.td | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Intrinsics.td
diff -u llvm/include/llvm/Intrinsics.td:1.23 llvm/include/llvm/Intrinsics.td:1.24
--- llvm/include/llvm/Intrinsics.td:1.23 Sat Mar 25 01:05:35 2006
+++ llvm/include/llvm/Intrinsics.td Sat Mar 25 01:27:18 2006
@@ -79,6 +79,9 @@
def llvm_ptrptr_ty : LLVMType<OtherVT, "Type::PointerTyID">; // sbyte**
def llvm_descriptor_ty : LLVMType<OtherVT, "Type::PointerTyID">; // global*
+def llvm_v16i8_ty : LLVMPackedType<v16i8,16, llvm_sbyte_ty>; // 16 x sbyte
+def llvm_v8i16_ty : LLVMPackedType<v8i16, 8, llvm_short_ty>; // 8 x short
+
def llvm_v2i32_ty : LLVMPackedType<v2i32, 2, llvm_int_ty>; // 2 x int
def llvm_v4i32_ty : LLVMPackedType<v4i32, 4, llvm_int_ty>; // 4 x int
def llvm_v4f32_ty : LLVMPackedType<v4f32, 4, llvm_float_ty>; // 4 x float
@@ -233,9 +236,41 @@
def int_ppc_altivec_vnmsubfp : GCCBuiltin<"__builtin_altivec_vnmsubfp">,
Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty,
llvm_v4f32_ty, llvm_v4f32_ty], [InstrNoMem]>;
- def int_ppc_altivec_vadduwm : GCCBuiltin<"__builtin_altivec_vadduwm">,
+
+ def int_ppc_altivec_vaddcuw : GCCBuiltin<"__builtin_altivec_vaddcuw">,
+ Intrinsic<[llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty],
+ [InstrNoMem]>;
+
+ // Saturating adds:
+ def int_ppc_altivec_vaddubs : GCCBuiltin<"__builtin_altivec_vaddubs">,
+ Intrinsic<[llvm_v16i8_ty, llvm_v16i8_ty, llvm_v16i8_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vaddsbs : GCCBuiltin<"__builtin_altivec_vaddsbs">,
+ Intrinsic<[llvm_v16i8_ty, llvm_v16i8_ty, llvm_v16i8_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vadduhs : GCCBuiltin<"__builtin_altivec_vadduhs">,
+ Intrinsic<[llvm_v8i16_ty, llvm_v8i16_ty, llvm_v8i16_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vaddshs : GCCBuiltin<"__builtin_altivec_vaddshs">,
+ Intrinsic<[llvm_v8i16_ty, llvm_v8i16_ty, llvm_v8i16_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vadduws : GCCBuiltin<"__builtin_altivec_vadduws">,
+ Intrinsic<[llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vaddsws : GCCBuiltin<"__builtin_altivec_vaddsws">,
Intrinsic<[llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty],
[InstrNoMem]>;
+
+ // FP to integer conversion.
+ def int_ppc_altivec_vcfsx : GCCBuiltin<"__builtin_altivec_vcfsx">,
+ Intrinsic<[llvm_v4f32_ty, llvm_v4i32_ty, llvm_int_ty],
+ [InstrNoMem]>;
+ def int_ppc_altivec_vcfux : GCCBuiltin<"__builtin_altivec_vcfux">,
+ Intrinsic<[llvm_v4f32_ty, llvm_v4i32_ty, llvm_int_ty],
+ [InstrNoMem]>;
+
+ def int_ppc_altivec_vrsqrtefp : GCCBuiltin<"__builtin_altivec_vrsqrtefp">,
+ Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty], [InstrNoMem]>;
}
More information about the llvm-commits
mailing list