MIPS: Create two definitions for __builtin_mips_shll_qb builtin.
authorSimon Atanasyan <satanasyan@mips.com>
Mon, 16 Jul 2012 18:51:39 +0000 (18:51 +0000)
committerSimon Atanasyan <satanasyan@mips.com>
Mon, 16 Jul 2012 18:51:39 +0000 (18:51 +0000)
The first variant accepts immediate number as the second argument.
The second variant accepts register operand as the second argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160307 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IntrinsicsMips.td

index e260a37243febf79b08634489e778f7c5b67ad55..6359e4398bb9b83e85aacd44547fbedd0a15d2f9 100644 (file)
@@ -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]>;