From ef2128c12cd29dea1d1faa4a6267eb09c9ee4f62 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Mon, 16 Jul 2012 18:51:39 +0000 Subject: [PATCH] MIPS: Create two definitions for __builtin_mips_shll_qb builtin. The first variant accepts immediate number as the second argument. The second variant accepts register operand as the second argument. llvm-svn: 160307 --- llvm/include/llvm/IntrinsicsMips.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/IntrinsicsMips.td b/llvm/include/llvm/IntrinsicsMips.td index e260a37243fe..6359e4398bb9 100644 --- a/llvm/include/llvm/IntrinsicsMips.td +++ b/llvm/include/llvm/IntrinsicsMips.td @@ -119,7 +119,9 @@ def int_mips_preceu_ph_qbra: GCCBuiltin<"__builtin_mips_preceu_ph_qbra">, //===----------------------------------------------------------------------===// // Shift -def int_mips_shll_qb: GCCBuiltin<"__builtin_mips_shll_qb">, +def int_mips_shll_qb: + Intrinsic<[llvm_v4i8_ty], [llvm_v4i8_ty, llvm_i32_ty], [IntrNoMem]>; +def int_mips_shll_qb_v: Intrinsic<[llvm_v4i8_ty], [llvm_v4i8_ty, llvm_i32_ty], [IntrNoMem]>; def int_mips_shrl_qb: GCCBuiltin<"__builtin_mips_shrl_qb">, Intrinsic<[llvm_v4i8_ty], [llvm_v4i8_ty, llvm_i32_ty], [IntrNoMem]>;