diff --git a/test/CodeGen/Mips/msa/2r.ll b/test/CodeGen/Mips/msa/2r.ll index 9a3189b126a..273a2a29edf 100644 --- a/test/CodeGen/Mips/msa/2r.ll +++ b/test/CodeGen/Mips/msa/2r.ll @@ -16,9 +16,11 @@ entry: declare <16 x i8> @llvm.mips.nloc.b(<16 x i8>) nounwind ; CHECK: llvm_mips_nloc_b_test: -; CHECK: ld.b -; CHECK: nloc.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nloc_b_ARG1) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nloc.b [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nloc_b_RES) +; CHECK-DAG: st.b [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nloc_b_test ; @llvm_mips_nloc_h_ARG1 = global <8 x i16> , align 16 @@ -35,9 +37,11 @@ entry: declare <8 x i16> @llvm.mips.nloc.h(<8 x i16>) nounwind ; CHECK: llvm_mips_nloc_h_test: -; CHECK: ld.h -; CHECK: nloc.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nloc_h_ARG1) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nloc.h [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nloc_h_RES) +; CHECK-DAG: st.h [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nloc_h_test ; @llvm_mips_nloc_w_ARG1 = global <4 x i32> , align 16 @@ -54,9 +58,11 @@ entry: declare <4 x i32> @llvm.mips.nloc.w(<4 x i32>) nounwind ; CHECK: llvm_mips_nloc_w_test: -; CHECK: ld.w -; CHECK: nloc.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nloc_w_ARG1) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nloc.w [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nloc_w_RES) +; CHECK-DAG: st.w [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nloc_w_test ; @llvm_mips_nloc_d_ARG1 = global <2 x i64> , align 16 @@ -73,9 +79,11 @@ entry: declare <2 x i64> @llvm.mips.nloc.d(<2 x i64>) nounwind ; CHECK: llvm_mips_nloc_d_test: -; CHECK: ld.d -; CHECK: nloc.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nloc_d_ARG1) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nloc.d [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nloc_d_RES) +; CHECK-DAG: st.d [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nloc_d_test ; @llvm_mips_nlzc_b_ARG1 = global <16 x i8> , align 16 @@ -92,9 +100,11 @@ entry: declare <16 x i8> @llvm.mips.nlzc.b(<16 x i8>) nounwind ; CHECK: llvm_mips_nlzc_b_test: -; CHECK: ld.b -; CHECK: nlzc.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nlzc_b_ARG1) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nlzc.b [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nlzc_b_RES) +; CHECK-DAG: st.b [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nlzc_b_test ; @llvm_mips_nlzc_h_ARG1 = global <8 x i16> , align 16 @@ -111,9 +121,11 @@ entry: declare <8 x i16> @llvm.mips.nlzc.h(<8 x i16>) nounwind ; CHECK: llvm_mips_nlzc_h_test: -; CHECK: ld.h -; CHECK: nlzc.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nlzc_h_ARG1) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nlzc.h [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nlzc_h_RES) +; CHECK-DAG: st.h [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nlzc_h_test ; @llvm_mips_nlzc_w_ARG1 = global <4 x i32> , align 16 @@ -130,9 +142,11 @@ entry: declare <4 x i32> @llvm.mips.nlzc.w(<4 x i32>) nounwind ; CHECK: llvm_mips_nlzc_w_test: -; CHECK: ld.w -; CHECK: nlzc.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nlzc_w_ARG1) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nlzc.w [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nlzc_w_RES) +; CHECK-DAG: st.w [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nlzc_w_test ; @llvm_mips_nlzc_d_ARG1 = global <2 x i64> , align 16 @@ -149,9 +163,11 @@ entry: declare <2 x i64> @llvm.mips.nlzc.d(<2 x i64>) nounwind ; CHECK: llvm_mips_nlzc_d_test: -; CHECK: ld.d -; CHECK: nlzc.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_nlzc_d_ARG1) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: nlzc.d [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_nlzc_d_RES) +; CHECK-DAG: st.d [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_nlzc_d_test ; @llvm_mips_pcnt_b_ARG1 = global <16 x i8> , align 16 @@ -168,9 +184,11 @@ entry: declare <16 x i8> @llvm.mips.pcnt.b(<16 x i8>) nounwind ; CHECK: llvm_mips_pcnt_b_test: -; CHECK: ld.b -; CHECK: pcnt.b -; CHECK: st.b +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_pcnt_b_ARG1) +; CHECK-DAG: ld.b [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: pcnt.b [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_pcnt_b_RES) +; CHECK-DAG: st.b [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_pcnt_b_test ; @llvm_mips_pcnt_h_ARG1 = global <8 x i16> , align 16 @@ -187,9 +205,11 @@ entry: declare <8 x i16> @llvm.mips.pcnt.h(<8 x i16>) nounwind ; CHECK: llvm_mips_pcnt_h_test: -; CHECK: ld.h -; CHECK: pcnt.h -; CHECK: st.h +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_pcnt_h_ARG1) +; CHECK-DAG: ld.h [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: pcnt.h [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_pcnt_h_RES) +; CHECK-DAG: st.h [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_pcnt_h_test ; @llvm_mips_pcnt_w_ARG1 = global <4 x i32> , align 16 @@ -206,9 +226,11 @@ entry: declare <4 x i32> @llvm.mips.pcnt.w(<4 x i32>) nounwind ; CHECK: llvm_mips_pcnt_w_test: -; CHECK: ld.w -; CHECK: pcnt.w -; CHECK: st.w +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_pcnt_w_ARG1) +; CHECK-DAG: ld.w [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: pcnt.w [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_pcnt_w_RES) +; CHECK-DAG: st.w [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_pcnt_w_test ; @llvm_mips_pcnt_d_ARG1 = global <2 x i64> , align 16 @@ -225,8 +247,10 @@ entry: declare <2 x i64> @llvm.mips.pcnt.d(<2 x i64>) nounwind ; CHECK: llvm_mips_pcnt_d_test: -; CHECK: ld.d -; CHECK: pcnt.d -; CHECK: st.d +; CHECK-DAG: lw [[R1:\$[0-9]+]], %got(llvm_mips_pcnt_d_ARG1) +; CHECK-DAG: ld.d [[WS:\$w[0-9]+]], 0([[R1]]) +; CHECK-DAG: pcnt.d [[WD:\$w[0-9]+]], [[WS]] +; CHECK-DAG: lw [[R2:\$[0-9]+]], %got(llvm_mips_pcnt_d_RES) +; CHECK-DAG: st.d [[WD]], 0([[R2]]) ; CHECK: .size llvm_mips_pcnt_d_test ;