diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 10:02:29 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 10:02:29 +0000 |
commit | a65f149af6fd90f1a849def3c1afb15d741ced2a (patch) | |
tree | c71ca0c5594b0450d0e06d03b0f2fbd0092fefd7 | |
parent | 47e70960945ecb33a361987a9745e3dc80a1c78c (diff) | |
download | llvm-a65f149af6fd90f1a849def3c1afb15d741ced2a.tar.gz llvm-a65f149af6fd90f1a849def3c1afb15d741ced2a.tar.bz2 llvm-a65f149af6fd90f1a849def3c1afb15d741ced2a.tar.xz |
[mips][msa] Summarize tests
Adds a comment to the start of each test summarizing the area the test covers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189465 91177308-0d34-0410-b5e6-96231b3b80d8
40 files changed, 114 insertions, 4 deletions
diff --git a/test/CodeGen/Mips/msa/2r.ll b/test/CodeGen/Mips/msa/2r.ll index b0061ae081..7719b7cc0c 100644 --- a/test/CodeGen/Mips/msa/2r.ll +++ b/test/CodeGen/Mips/msa/2r.ll @@ -1,3 +1,5 @@ +; Test the MSA intrinsics that are encoded with the 2R instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_nloc_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/2r_vector_scalar.ll b/test/CodeGen/Mips/msa/2r_vector_scalar.ll index 9d0765a252..e03c9a3464 100644 --- a/test/CodeGen/Mips/msa/2r_vector_scalar.ll +++ b/test/CodeGen/Mips/msa/2r_vector_scalar.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 2R instruction format and +; convert scalars to vectors. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fill_b_ARG1 = global i32 23, align 16 diff --git a/test/CodeGen/Mips/msa/2rf.ll b/test/CodeGen/Mips/msa/2rf.ll index 6283cdf729..74372871ae 100644 --- a/test/CodeGen/Mips/msa/2rf.ll +++ b/test/CodeGen/Mips/msa/2rf.ll @@ -1,3 +1,5 @@ +; Test the MSA intrinsics that are encoded with the 2RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_flog2_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/2rf_exup.ll b/test/CodeGen/Mips/msa/2rf_exup.ll index 54e416de7d..ca47c95b8a 100644 --- a/test/CodeGen/Mips/msa/2rf_exup.ll +++ b/test/CodeGen/Mips/msa/2rf_exup.ll @@ -1,3 +1,6 @@ +; Test the MSA floating point conversion intrinsics (e.g. float->double) that +; are encoded with the 2RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fexupl_w_ARG1 = global <8 x half> <half 0.000000e+00, half 1.000000e+00, half 2.000000e+00, half 3.000000e+00, half 4.000000e+00, half 5.000000e+00, half 6.000000e+00, half 7.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/2rf_float_int.ll b/test/CodeGen/Mips/msa/2rf_float_int.ll index 4b2ef22434..c76064a8ba 100644 --- a/test/CodeGen/Mips/msa/2rf_float_int.ll +++ b/test/CodeGen/Mips/msa/2rf_float_int.ll @@ -1,3 +1,6 @@ +; Test the MSA integer to floating point conversion intrinsics that are encoded +; with the 2RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ffint_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 diff --git a/test/CodeGen/Mips/msa/2rf_fq.ll b/test/CodeGen/Mips/msa/2rf_fq.ll index e0f80c09f1..6808a2a99d 100644 --- a/test/CodeGen/Mips/msa/2rf_fq.ll +++ b/test/CodeGen/Mips/msa/2rf_fq.ll @@ -1,3 +1,6 @@ +; Test the MSA fixed-point to floating point conversion intrinsics that are +; encoded with the 2RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ffql_w_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 diff --git a/test/CodeGen/Mips/msa/2rf_int_float.ll b/test/CodeGen/Mips/msa/2rf_int_float.ll index ef5c0c3db1..b5eaad27e9 100644 --- a/test/CodeGen/Mips/msa/2rf_int_float.ll +++ b/test/CodeGen/Mips/msa/2rf_int_float.ll @@ -1,3 +1,7 @@ +; Test the MSA floating point to integer intrinsics that are encoded with the +; 2RF instruction format. This includes conversions but other instructions such +; as fclass are also here. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fclass_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/2rf_tq.ll b/test/CodeGen/Mips/msa/2rf_tq.ll index 190f93ce6e..aa7fc8636f 100644 --- a/test/CodeGen/Mips/msa/2rf_tq.ll +++ b/test/CodeGen/Mips/msa/2rf_tq.ll @@ -1,3 +1,6 @@ +; Test the MSA floating-point to fixed-point conversion intrinsics that are +; encoded with the 2RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ftq_h_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-a.ll b/test/CodeGen/Mips/msa/3r-a.ll index 3cdeae4af3..79b82374a9 100644 --- a/test/CodeGen/Mips/msa/3r-a.ll +++ b/test/CodeGen/Mips/msa/3r-a.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'a' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_add_a_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-b.ll b/test/CodeGen/Mips/msa/3r-b.ll index afcc391e53..786c71f961 100644 --- a/test/CodeGen/Mips/msa/3r-b.ll +++ b/test/CodeGen/Mips/msa/3r-b.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'b' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_bclr_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-c.ll b/test/CodeGen/Mips/msa/3r-c.ll index 56636947ac..0ad6afbe42 100644 --- a/test/CodeGen/Mips/msa/3r-c.ll +++ b/test/CodeGen/Mips/msa/3r-c.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'c' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ceq_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-d.ll b/test/CodeGen/Mips/msa/3r-d.ll index 3b20743a5d..ee94e5650d 100644 --- a/test/CodeGen/Mips/msa/3r-d.ll +++ b/test/CodeGen/Mips/msa/3r-d.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'd' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_div_s_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-i.ll b/test/CodeGen/Mips/msa/3r-i.ll index b5c6a305d6..2f9acd1f1e 100644 --- a/test/CodeGen/Mips/msa/3r-i.ll +++ b/test/CodeGen/Mips/msa/3r-i.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'i' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ilvev_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-m.ll b/test/CodeGen/Mips/msa/3r-m.ll index 7f0cb363d9..041d603dd4 100644 --- a/test/CodeGen/Mips/msa/3r-m.ll +++ b/test/CodeGen/Mips/msa/3r-m.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'm' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_max_a_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-p.ll b/test/CodeGen/Mips/msa/3r-p.ll index 1386533296..f328cad614 100644 --- a/test/CodeGen/Mips/msa/3r-p.ll +++ b/test/CodeGen/Mips/msa/3r-p.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'p' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_pckev_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-s.ll b/test/CodeGen/Mips/msa/3r-s.ll index 6c977c636d..bcc6ba7829 100644 --- a/test/CodeGen/Mips/msa/3r-s.ll +++ b/test/CodeGen/Mips/msa/3r-s.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 's' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_sld_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r-v.ll b/test/CodeGen/Mips/msa/3r-v.ll index 5c2ab9b228..055491d6a7 100644 --- a/test/CodeGen/Mips/msa/3r-v.ll +++ b/test/CodeGen/Mips/msa/3r-v.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format. +; There are lots of these so this covers those beginning with 'v' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_vshf_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r_4r.ll b/test/CodeGen/Mips/msa/3r_4r.ll index c7d189e926..52f3cd3b88 100644 --- a/test/CodeGen/Mips/msa/3r_4r.ll +++ b/test/CodeGen/Mips/msa/3r_4r.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format and +; use the result as a third operand. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_maddv_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3r_4r_widen.ll b/test/CodeGen/Mips/msa/3r_4r_widen.ll index 891d11a2f4..63592b4b05 100644 --- a/test/CodeGen/Mips/msa/3r_4r_widen.ll +++ b/test/CodeGen/Mips/msa/3r_4r_widen.ll @@ -1,3 +1,7 @@ +; Test the MSA intrinsics that are encoded with the 3R instruction format and +; use the result as a third operand and results in wider elements than the +; operands had. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_dpadd_s_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 diff --git a/test/CodeGen/Mips/msa/3r_splat.ll b/test/CodeGen/Mips/msa/3r_splat.ll index dad61eb8b6..001f723f7d 100644 --- a/test/CodeGen/Mips/msa/3r_splat.ll +++ b/test/CodeGen/Mips/msa/3r_splat.ll @@ -1,3 +1,6 @@ +; Test the MSA splat intrinsics that are encoded with the 3R instruction +; format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_splat_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf.ll b/test/CodeGen/Mips/msa/3rf.ll index e2d5a208c0..265c8fb4b0 100644 --- a/test/CodeGen/Mips/msa/3rf.ll +++ b/test/CodeGen/Mips/msa/3rf.ll @@ -1,3 +1,5 @@ +; Test the MSA intrinsics that are encoded with the 3RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fadd_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_4rf.ll b/test/CodeGen/Mips/msa/3rf_4rf.ll index cef38fd6e9..913fe70c06 100644 --- a/test/CodeGen/Mips/msa/3rf_4rf.ll +++ b/test/CodeGen/Mips/msa/3rf_4rf.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3RF instruction format and +; use the result as a third operand. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fmadd_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_4rf_q.ll b/test/CodeGen/Mips/msa/3rf_4rf_q.ll index b490e18038..4fbc69d3c4 100644 --- a/test/CodeGen/Mips/msa/3rf_4rf_q.ll +++ b/test/CodeGen/Mips/msa/3rf_4rf_q.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3RF instruction format and +; use the result as a third operand and perform fixed-point operations. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_madd_q_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_exdo.ll b/test/CodeGen/Mips/msa/3rf_exdo.ll index 45a80116e0..d5713cb9ae 100644 --- a/test/CodeGen/Mips/msa/3rf_exdo.ll +++ b/test/CodeGen/Mips/msa/3rf_exdo.ll @@ -1,3 +1,6 @@ +; Test the MSA floating-point conversion intrinsics that are encoded with the +; 3RF instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fexdo_h_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_float_int.ll b/test/CodeGen/Mips/msa/3rf_float_int.ll index 6b9998d4b1..6fd46f5e7f 100644 --- a/test/CodeGen/Mips/msa/3rf_float_int.ll +++ b/test/CodeGen/Mips/msa/3rf_float_int.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3RF instruction format and +; take an integer as an operand. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fexp2_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_int_float.ll b/test/CodeGen/Mips/msa/3rf_int_float.ll index 112f1177b9..3d10ad3ca7 100644 --- a/test/CodeGen/Mips/msa/3rf_int_float.ll +++ b/test/CodeGen/Mips/msa/3rf_int_float.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the 3RF instruction format and +; produce an integer as a result. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_fceq_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 diff --git a/test/CodeGen/Mips/msa/3rf_q.ll b/test/CodeGen/Mips/msa/3rf_q.ll index 748fd9c686..857ae3f617 100644 --- a/test/CodeGen/Mips/msa/3rf_q.ll +++ b/test/CodeGen/Mips/msa/3rf_q.ll @@ -1,3 +1,6 @@ +; Test the MSA fixed-point intrinsics that are encoded with the 3RF instruction +; format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_mul_q_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 diff --git a/test/CodeGen/Mips/msa/bit.ll b/test/CodeGen/Mips/msa/bit.ll index fe36ed7a0a..28bf0e75bc 100644 --- a/test/CodeGen/Mips/msa/bit.ll +++ b/test/CodeGen/Mips/msa/bit.ll @@ -1,3 +1,5 @@ +; Test the MSA intrinsics that are encoded with the BIT instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_sat_s_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/bitcast.ll b/test/CodeGen/Mips/msa/bitcast.ll index fccdbf6df2..03195a8459 100644 --- a/test/CodeGen/Mips/msa/bitcast.ll +++ b/test/CodeGen/Mips/msa/bitcast.ll @@ -1,3 +1,5 @@ +; Test the bitcast operation for big-endian and little-endian. + ; RUN: llc -march=mipsel -mattr=+msa < %s | FileCheck -check-prefix=LITENDIAN %s ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck -check-prefix=BIGENDIAN %s diff --git a/test/CodeGen/Mips/msa/elm_copy.ll b/test/CodeGen/Mips/msa/elm_copy.ll index f31bb506db..a966043b5d 100644 --- a/test/CodeGen/Mips/msa/elm_copy.ll +++ b/test/CodeGen/Mips/msa/elm_copy.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the ELM instruction format and +; are element extraction operations. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_copy_s_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/elm_insv.ll b/test/CodeGen/Mips/msa/elm_insv.ll index be0b5c4f2d..eb7dbf515d 100644 --- a/test/CodeGen/Mips/msa/elm_insv.ll +++ b/test/CodeGen/Mips/msa/elm_insv.ll @@ -1,8 +1,8 @@ -; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s -; ; Test the MSA element insertion intrinsics that are encoded with the ELM ; instruction format. +; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s + @llvm_mips_insert_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 @llvm_mips_insert_b_ARG3 = global i32 27, align 16 @llvm_mips_insert_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16 diff --git a/test/CodeGen/Mips/msa/elm_shift_slide.ll b/test/CodeGen/Mips/msa/elm_shift_slide.ll index 5bddeaf203..2568ba01f7 100644 --- a/test/CodeGen/Mips/msa/elm_shift_slide.ll +++ b/test/CodeGen/Mips/msa/elm_shift_slide.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the ELM instruction format and +; are either shifts or slides. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_sldi_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i5-a.ll b/test/CodeGen/Mips/msa/i5-a.ll index fe93534b2f..f158494f35 100644 --- a/test/CodeGen/Mips/msa/i5-a.ll +++ b/test/CodeGen/Mips/msa/i5-a.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the I5 instruction format. +; There are lots of these so this covers those beginning with 'a' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_addvi_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i5-b.ll b/test/CodeGen/Mips/msa/i5-b.ll index 87d4527124..165c9a449a 100644 --- a/test/CodeGen/Mips/msa/i5-b.ll +++ b/test/CodeGen/Mips/msa/i5-b.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the I5 instruction format. +; There are lots of these so this covers those beginning with 'b' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_bclri_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i5-c.ll b/test/CodeGen/Mips/msa/i5-c.ll index 5e9eed8b2d..e9ebee40ad 100644 --- a/test/CodeGen/Mips/msa/i5-c.ll +++ b/test/CodeGen/Mips/msa/i5-c.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the I5 instruction format. +; There are lots of these so this covers those beginning with 'c' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_ceqi_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i5-m.ll b/test/CodeGen/Mips/msa/i5-m.ll index 9e35848546..a4677194ac 100644 --- a/test/CodeGen/Mips/msa/i5-m.ll +++ b/test/CodeGen/Mips/msa/i5-m.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the I5 instruction format. +; There are lots of these so this covers those beginning with 'm' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_maxi_s_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i5-s.ll b/test/CodeGen/Mips/msa/i5-s.ll index 058e0edba8..616085c7f4 100644 --- a/test/CodeGen/Mips/msa/i5-s.ll +++ b/test/CodeGen/Mips/msa/i5-s.ll @@ -1,3 +1,6 @@ +; Test the MSA intrinsics that are encoded with the I5 instruction format. +; There are lots of these so this covers those beginning with 's' + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_subvi_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/i8.ll b/test/CodeGen/Mips/msa/i8.ll index 5587848158..e629b04662 100644 --- a/test/CodeGen/Mips/msa/i8.ll +++ b/test/CodeGen/Mips/msa/i8.ll @@ -1,3 +1,5 @@ +; Test the MSA intrinsics that are encoded with the I8 instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s @llvm_mips_andi_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 diff --git a/test/CodeGen/Mips/msa/spill.ll b/test/CodeGen/Mips/msa/spill.ll index 33f4a441e2..5c927bffff 100644 --- a/test/CodeGen/Mips/msa/spill.ll +++ b/test/CodeGen/Mips/msa/spill.ll @@ -1,3 +1,6 @@ +; Test that the correct instruction is chosen for spill and reload by trying +; to have 33 live MSA registers simultaneously + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s define i32 @test_i8(<16 x i8>* %p0, <16 x i8>* %q1) nounwind { diff --git a/test/CodeGen/Mips/msa/vec.ll b/test/CodeGen/Mips/msa/vec.ll index eb293e8607..13a23fa272 100644 --- a/test/CodeGen/Mips/msa/vec.ll +++ b/test/CodeGen/Mips/msa/vec.ll @@ -1,7 +1,7 @@ +; Test the MSA intrinsics that are encoded with the VEC instruction format. + ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck -check-prefix=ANYENDIAN %s ; RUN: llc -march=mipsel -mattr=+msa < %s | FileCheck -check-prefix=ANYENDIAN %s -; -; Test the MSA intrinsics that are encoded with the VEC instruction format. @llvm_mips_and_v_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16 @llvm_mips_and_v_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16 |