r193076 - [mips][msa] Fix definition of SLD instruction.
Matheus Almeida
matheus.almeida at imgtec.com
Mon Oct 21 04:47:56 PDT 2013
Author: matheusalmeida
Date: Mon Oct 21 06:47:56 2013
New Revision: 193076
URL: http://llvm.org/viewvc/llvm-project?rev=193076&view=rev
Log:
[mips][msa] Fix definition of SLD instruction.
The second parameter of the SLD intrinsic is the number of columns (GPR) to
slide left the source array.
Modified:
cfe/trunk/include/clang/Basic/BuiltinsMips.def
cfe/trunk/test/CodeGen/builtins-mips-msa.c
Modified: cfe/trunk/include/clang/Basic/BuiltinsMips.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsMips.def?rev=193076&r1=193075&r2=193076&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/BuiltinsMips.def (original)
+++ cfe/trunk/include/clang/Basic/BuiltinsMips.def Mon Oct 21 06:47:56 2013
@@ -774,10 +774,10 @@ BUILTIN(__builtin_msa_shf_b, "V16cV16cIU
BUILTIN(__builtin_msa_shf_h, "V8sV8sIUi", "nc")
BUILTIN(__builtin_msa_shf_w, "V4iV4iIUi", "nc")
-BUILTIN(__builtin_msa_sld_b, "V16cV16cV16c", "nc")
-BUILTIN(__builtin_msa_sld_h, "V8sV8sV8s", "nc")
-BUILTIN(__builtin_msa_sld_w, "V4iV4iV4i", "nc")
-BUILTIN(__builtin_msa_sld_d, "V2LLiV2LLiV2LLi", "nc")
+BUILTIN(__builtin_msa_sld_b, "V16cV16cUi", "nc")
+BUILTIN(__builtin_msa_sld_h, "V8sV8sUi", "nc")
+BUILTIN(__builtin_msa_sld_w, "V4iV4iUi", "nc")
+BUILTIN(__builtin_msa_sld_d, "V2LLiV2LLiUi", "nc")
BUILTIN(__builtin_msa_sldi_b, "V16cV16cIUi", "nc")
BUILTIN(__builtin_msa_sldi_h, "V8sV8sIUi", "nc")
Modified: cfe/trunk/test/CodeGen/builtins-mips-msa.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/builtins-mips-msa.c?rev=193076&r1=193075&r2=193076&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/builtins-mips-msa.c (original)
+++ cfe/trunk/test/CodeGen/builtins-mips-msa.c Mon Oct 21 06:47:56 2013
@@ -688,10 +688,10 @@ void test(void) {
v8i16_r = __builtin_msa_shf_h(v8i16_a, 3); // CHECK: call <8 x i16> @llvm.mips.shf.h(
v4i32_r = __builtin_msa_shf_w(v4i32_a, 3); // CHECK: call <4 x i32> @llvm.mips.shf.w(
- v16i8_r = __builtin_msa_sld_b(v16i8_a, v16i8_b); // CHECK: call <16 x i8> @llvm.mips.sld.b(
- v8i16_r = __builtin_msa_sld_h(v8i16_a, v8i16_b); // CHECK: call <8 x i16> @llvm.mips.sld.h(
- v4i32_r = __builtin_msa_sld_w(v4i32_a, v4i32_b); // CHECK: call <4 x i32> @llvm.mips.sld.w(
- v2i64_r = __builtin_msa_sld_d(v2i64_a, v2i64_b); // CHECK: call <2 x i64> @llvm.mips.sld.d(
+ v16i8_r = __builtin_msa_sld_b(v16i8_a, 10); // CHECK: call <16 x i8> @llvm.mips.sld.b(
+ v8i16_r = __builtin_msa_sld_h(v8i16_a, 10); // CHECK: call <8 x i16> @llvm.mips.sld.h(
+ v4i32_r = __builtin_msa_sld_w(v4i32_a, 10); // CHECK: call <4 x i32> @llvm.mips.sld.w(
+ v2i64_r = __builtin_msa_sld_d(v2i64_a, 10); // CHECK: call <2 x i64> @llvm.mips.sld.d(
v16i8_r = __builtin_msa_sldi_b(v16i8_a, 3); // CHECK: call <16 x i8> @llvm.mips.sldi.b(
v8i16_r = __builtin_msa_sldi_h(v8i16_a, 3); // CHECK: call <8 x i16> @llvm.mips.sldi.h(
More information about the cfe-commits
mailing list