diff options
author | Simon Atanasyan <satanasyan@mips.com> | 2012-07-16 18:51:39 +0000 |
---|---|---|
committer | Simon Atanasyan <satanasyan@mips.com> | 2012-07-16 18:51:39 +0000 |
commit | f6978ddbeca0320bc10da0b7753eb5807aaa9ed8 (patch) | |
tree | 0a3dd17bd7d4c8cdac42fda4fa828b19dc63573b | |
parent | 7ee0e5ae6093dba18ecc5eaafb91e8fa82f4c409 (diff) | |
download | external_llvm-f6978ddbeca0320bc10da0b7753eb5807aaa9ed8.zip external_llvm-f6978ddbeca0320bc10da0b7753eb5807aaa9ed8.tar.gz external_llvm-f6978ddbeca0320bc10da0b7753eb5807aaa9ed8.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160307 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/IntrinsicsMips.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/IntrinsicsMips.td b/include/llvm/IntrinsicsMips.td index e260a37..6359e43 100644 --- a/include/llvm/IntrinsicsMips.td +++ b/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]>; |