diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-11 13:18:01 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-11 13:18:01 +0000 |
commit | 71e7893757d4f43de7c060153b2e5e8c53dd2e31 (patch) | |
tree | 8bd1eb140785641fd6e267aff6f0be16f2f3dc21 /test/CodeGen/Mips/msa | |
parent | 81d9902bb11b05c19c2a82209c362bd4e772bfea (diff) | |
download | external_llvm-71e7893757d4f43de7c060153b2e5e8c53dd2e31.zip external_llvm-71e7893757d4f43de7c060153b2e5e8c53dd2e31.tar.gz external_llvm-71e7893757d4f43de7c060153b2e5e8c53dd2e31.tar.bz2 |
[mips][msa] Improves robustness of the test by enhancing pattern matching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/msa')
-rw-r--r-- | test/CodeGen/Mips/msa/3r-s.ll | 600 |
1 files changed, 360 insertions, 240 deletions
diff --git a/test/CodeGen/Mips/msa/3r-s.ll b/test/CodeGen/Mips/msa/3r-s.ll index fabdfdf..360bd4c 100644 --- a/test/CodeGen/Mips/msa/3r-s.ll +++ b/test/CodeGen/Mips/msa/3r-s.ll @@ -19,10 +19,12 @@ entry: declare <16 x i8> @llvm.mips.sld.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_sld_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: sld.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sld_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sld_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sld.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_sld_b_test ; @llvm_mips_sld_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -41,10 +43,12 @@ entry: declare <8 x i16> @llvm.mips.sld.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_sld_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: sld.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sld_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sld_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sld.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_sld_h_test ; @llvm_mips_sld_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -63,10 +67,12 @@ entry: declare <4 x i32> @llvm.mips.sld.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_sld_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: sld.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sld_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sld_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sld.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_sld_w_test ; @llvm_mips_sld_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -85,10 +91,12 @@ entry: declare <2 x i64> @llvm.mips.sld.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_sld_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: sld.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sld_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sld_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sld.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_sld_d_test ; @llvm_mips_sll_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 @@ -107,10 +115,12 @@ entry: declare <16 x i8> @llvm.mips.sll.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_sll_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: sll.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_sll_b_test ; @llvm_mips_sll_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -129,10 +139,12 @@ entry: declare <8 x i16> @llvm.mips.sll.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_sll_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: sll.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_sll_h_test ; @llvm_mips_sll_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -151,10 +163,12 @@ entry: declare <4 x i32> @llvm.mips.sll.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_sll_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: sll.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_sll_w_test ; @llvm_mips_sll_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -173,10 +187,12 @@ entry: declare <2 x i64> @llvm.mips.sll.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_sll_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: sll.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_sll_d_test define void @sll_b_test() nounwind { @@ -189,10 +205,12 @@ entry: } ; CHECK: sll_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: sll.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size sll_b_test define void @sll_h_test() nounwind { @@ -205,10 +223,12 @@ entry: } ; CHECK: sll_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: sll.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size sll_h_test define void @sll_w_test() nounwind { @@ -221,10 +241,12 @@ entry: } ; CHECK: sll_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: sll.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size sll_w_test define void @sll_d_test() nounwind { @@ -237,10 +259,12 @@ entry: } ; CHECK: sll_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: sll.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sll_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sll_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sll.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size sll_d_test ; @llvm_mips_sra_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 @@ -259,10 +283,12 @@ entry: declare <16 x i8> @llvm.mips.sra.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_sra_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: sra.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_sra_b_test ; @llvm_mips_sra_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -281,10 +307,12 @@ entry: declare <8 x i16> @llvm.mips.sra.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_sra_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: sra.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_sra_h_test ; @llvm_mips_sra_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -303,10 +331,12 @@ entry: declare <4 x i32> @llvm.mips.sra.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_sra_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: sra.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_sra_w_test ; @llvm_mips_sra_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -325,10 +355,12 @@ entry: declare <2 x i64> @llvm.mips.sra.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_sra_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: sra.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_sra_d_test ; @@ -342,10 +374,12 @@ entry: } ; CHECK: sra_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: sra.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size sra_b_test define void @sra_h_test() nounwind { @@ -358,10 +392,12 @@ entry: } ; CHECK: sra_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: sra.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size sra_h_test define void @sra_w_test() nounwind { @@ -374,10 +410,12 @@ entry: } ; CHECK: sra_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: sra.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size sra_w_test define void @sra_d_test() nounwind { @@ -390,10 +428,12 @@ entry: } ; CHECK: sra_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: sra.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_sra_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_sra_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: sra.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size sra_d_test @llvm_mips_srar_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 @@ -412,10 +452,12 @@ entry: declare <16 x i8> @llvm.mips.srar.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_srar_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: srar.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srar_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srar_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srar.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_srar_b_test ; @llvm_mips_srar_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -434,10 +476,12 @@ entry: declare <8 x i16> @llvm.mips.srar.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_srar_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: srar.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srar_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srar_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srar.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_srar_h_test ; @llvm_mips_srar_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -456,10 +500,12 @@ entry: declare <4 x i32> @llvm.mips.srar.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_srar_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: srar.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srar_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srar_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srar.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_srar_w_test ; @llvm_mips_srar_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -478,10 +524,12 @@ entry: declare <2 x i64> @llvm.mips.srar.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_srar_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: srar.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srar_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srar_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srar.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_srar_d_test ; @llvm_mips_srl_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 @@ -500,10 +548,12 @@ entry: declare <16 x i8> @llvm.mips.srl.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_srl_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: srl.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_srl_b_test ; @llvm_mips_srl_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -522,10 +572,12 @@ entry: declare <8 x i16> @llvm.mips.srl.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_srl_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: srl.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_srl_h_test ; @llvm_mips_srl_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -544,10 +596,12 @@ entry: declare <4 x i32> @llvm.mips.srl.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_srl_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: srl.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_srl_w_test ; @llvm_mips_srl_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -566,10 +620,12 @@ entry: declare <2 x i64> @llvm.mips.srl.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_srl_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: srl.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_srl_d_test ; @llvm_mips_srlr_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 @@ -588,10 +644,12 @@ entry: declare <16 x i8> @llvm.mips.srlr.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_srlr_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: srlr.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srlr_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srlr_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srlr.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_srlr_b_test ; @llvm_mips_srlr_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -610,10 +668,12 @@ entry: declare <8 x i16> @llvm.mips.srlr.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_srlr_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: srlr.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srlr_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srlr_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srlr.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_srlr_h_test ; @llvm_mips_srlr_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -632,10 +692,12 @@ entry: declare <4 x i32> @llvm.mips.srlr.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_srlr_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: srlr.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srlr_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srlr_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srlr.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_srlr_w_test ; @llvm_mips_srlr_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -654,10 +716,12 @@ entry: declare <2 x i64> @llvm.mips.srlr.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_srlr_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: srlr.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srlr_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srlr_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srlr.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_srlr_d_test ; @@ -671,10 +735,12 @@ entry: } ; CHECK: srl_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: srl.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size srl_b_test define void @srl_h_test() nounwind { @@ -687,10 +753,12 @@ entry: } ; CHECK: srl_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: srl.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size srl_h_test define void @srl_w_test() nounwind { @@ -703,10 +771,12 @@ entry: } ; CHECK: srl_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: srl.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size srl_w_test define void @srl_d_test() nounwind { @@ -719,10 +789,12 @@ entry: } ; CHECK: srl_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: srl.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_srl_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_srl_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: srl.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size srl_d_test @llvm_mips_subs_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 @@ -741,10 +813,12 @@ entry: declare <16 x i8> @llvm.mips.subs.s.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_subs_s_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subs_s.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_s_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_s_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_s.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_subs_s_b_test ; @llvm_mips_subs_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 @@ -763,10 +837,12 @@ entry: declare <8 x i16> @llvm.mips.subs.s.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_subs_s_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subs_s.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_s_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_s_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_s.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_subs_s_h_test ; @llvm_mips_subs_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -785,10 +861,12 @@ entry: declare <4 x i32> @llvm.mips.subs.s.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_subs_s_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subs_s.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_s_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_s_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_s.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_subs_s_w_test ; @llvm_mips_subs_s_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -807,10 +885,12 @@ entry: declare <2 x i64> @llvm.mips.subs.s.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_subs_s_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subs_s.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_s_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_s_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_s.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_subs_s_d_test ; @llvm_mips_subs_u_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 @@ -829,10 +909,12 @@ entry: declare <16 x i8> @llvm.mips.subs.u.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_subs_u_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subs_u.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_u_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_u_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_u.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_subs_u_b_test ; @llvm_mips_subs_u_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -851,10 +933,12 @@ entry: declare <8 x i16> @llvm.mips.subs.u.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_subs_u_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subs_u.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_u_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_u_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_u.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_subs_u_h_test ; @llvm_mips_subs_u_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -873,10 +957,12 @@ entry: declare <4 x i32> @llvm.mips.subs.u.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_subs_u_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subs_u.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_u_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_u_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_u.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_subs_u_w_test ; @llvm_mips_subs_u_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -895,10 +981,12 @@ entry: declare <2 x i64> @llvm.mips.subs.u.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_subs_u_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subs_u.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subs_u_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subs_u_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subs_u.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_subs_u_d_test ; @llvm_mips_subsus_u_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 @@ -917,10 +1005,12 @@ entry: declare <16 x i8> @llvm.mips.subsus.u.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_subsus_u_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subsus_u.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsus_u_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsus_u_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsus_u.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_subsus_u_b_test ; @llvm_mips_subsus_u_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -939,10 +1029,12 @@ entry: declare <8 x i16> @llvm.mips.subsus.u.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_subsus_u_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subsus_u.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsus_u_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsus_u_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsus_u.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_subsus_u_h_test ; @llvm_mips_subsus_u_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -961,10 +1053,12 @@ entry: declare <4 x i32> @llvm.mips.subsus.u.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_subsus_u_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subsus_u.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsus_u_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsus_u_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsus_u.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_subsus_u_w_test ; @llvm_mips_subsus_u_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -983,10 +1077,12 @@ entry: declare <2 x i64> @llvm.mips.subsus.u.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_subsus_u_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subsus_u.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsus_u_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsus_u_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsus_u.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_subsus_u_d_test ; @llvm_mips_subsuu_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 @@ -1005,10 +1101,12 @@ entry: declare <16 x i8> @llvm.mips.subsuu.s.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_subsuu_s_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subsuu_s.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsuu_s_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsuu_s_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsuu_s.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_subsuu_s_b_test ; @llvm_mips_subsuu_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 @@ -1027,10 +1125,12 @@ entry: declare <8 x i16> @llvm.mips.subsuu.s.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_subsuu_s_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subsuu_s.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsuu_s_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsuu_s_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsuu_s.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_subsuu_s_h_test ; @llvm_mips_subsuu_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -1049,10 +1149,12 @@ entry: declare <4 x i32> @llvm.mips.subsuu.s.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_subsuu_s_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subsuu_s.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsuu_s_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsuu_s_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsuu_s.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_subsuu_s_w_test ; @llvm_mips_subsuu_s_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -1071,10 +1173,12 @@ entry: declare <2 x i64> @llvm.mips.subsuu.s.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_subsuu_s_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subsuu_s.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subsuu_s_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subsuu_s_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subsuu_s.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_subsuu_s_d_test ; @llvm_mips_subv_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 @@ -1093,10 +1197,12 @@ entry: declare <16 x i8> @llvm.mips.subv.b(<16 x i8>, <16 x i8>) nounwind ; CHECK: llvm_mips_subv_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subv.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size llvm_mips_subv_b_test ; @llvm_mips_subv_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16 @@ -1115,10 +1221,12 @@ entry: declare <8 x i16> @llvm.mips.subv.h(<8 x i16>, <8 x i16>) nounwind ; CHECK: llvm_mips_subv_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subv.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size llvm_mips_subv_h_test ; @llvm_mips_subv_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16 @@ -1137,10 +1245,12 @@ entry: declare <4 x i32> @llvm.mips.subv.w(<4 x i32>, <4 x i32>) nounwind ; CHECK: llvm_mips_subv_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subv.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size llvm_mips_subv_w_test ; @llvm_mips_subv_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16 @@ -1159,10 +1269,12 @@ entry: declare <2 x i64> @llvm.mips.subv.d(<2 x i64>, <2 x i64>) nounwind ; CHECK: llvm_mips_subv_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subv.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size llvm_mips_subv_d_test ; @@ -1176,10 +1288,12 @@ entry: } ; CHECK: subv_b_test: -; CHECK: ld.b -; CHECK: ld.b -; CHECK: subv.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_b_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_b_ARG2) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.b [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.b [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.b [[WD]] ; CHECK: .size subv_b_test define void @subv_h_test() nounwind { @@ -1192,10 +1306,12 @@ entry: } ; CHECK: subv_h_test: -; CHECK: ld.h -; CHECK: ld.h -; CHECK: subv.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_h_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_h_ARG2) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.h [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.h [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.h [[WD]] ; CHECK: .size subv_h_test define void @subv_w_test() nounwind { @@ -1208,10 +1324,12 @@ entry: } ; CHECK: subv_w_test: -; CHECK: ld.w -; CHECK: ld.w -; CHECK: subv.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_w_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_w_ARG2) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.w [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.w [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.w [[WD]] ; CHECK: .size subv_w_test define void @subv_d_test() nounwind { @@ -1224,9 +1342,11 @@ entry: } ; CHECK: subv_d_test: -; CHECK: ld.d -; CHECK: ld.d -; CHECK: subv.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_subv_d_ARG1) +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_subv_d_ARG2) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: ld.d [[WT:\$w[0-9]+]], 0([[R2]]) +; CHECK-DAG: subv.d [[WD:\$w[0-9]+]], [[WS]], [[WT]] +; CHECK-DAG: st.d [[WD]] ; CHECK: .size subv_d_test ; |