From 4cb577c614f144d25895c3bbb46d8b4f5590db17 Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Wed, 29 Jan 2014 14:32:03 +0000 Subject: [PATCH] [mips][msa] CHECK-DAG-ize MSA 2r_vector_scalar.ll test. This update is a preparation for the addition of Mips64 MSA tests. No functional changes. llvm-svn: 200399 --- .../test/CodeGen/Mips/msa/2r_vector_scalar.ll | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/llvm/test/CodeGen/Mips/msa/2r_vector_scalar.ll b/llvm/test/CodeGen/Mips/msa/2r_vector_scalar.ll index 6f6e1b9ce2f8..c304ede366f9 100644 --- a/llvm/test/CodeGen/Mips/msa/2r_vector_scalar.ll +++ b/llvm/test/CodeGen/Mips/msa/2r_vector_scalar.ll @@ -1,8 +1,10 @@ ; Test the MSA intrinsics that are encoded with the 2R instruction format and ; convert scalars to vectors. -; RUN: llc -march=mips -mattr=+msa,+fp64 < %s | FileCheck %s -; RUN: llc -march=mipsel -mattr=+msa,+fp64 < %s | FileCheck %s +; RUN: llc -march=mips -mattr=+msa,+fp64 < %s | \ +; RUN: FileCheck %s -check-prefix=MIPS-ANY -check-prefix=MIPS32 +; RUN: llc -march=mipsel -mattr=+msa,+fp64 < %s | \ +; RUN: FileCheck %s -check-prefix=MIPS-ANY -check-prefix=MIPS32 @llvm_mips_fill_b_ARG1 = global i32 23, align 16 @llvm_mips_fill_b_RES = global <16 x i8> , align 16 @@ -17,11 +19,11 @@ entry: declare <16 x i8> @llvm.mips.fill.b(i32) nounwind -; CHECK: llvm_mips_fill_b_test: -; CHECK-DAG: lw [[R1:\$[0-9]+]], -; CHECK-DAG: fill.b [[R2:\$w[0-9]+]], [[R1]] -; CHECK-DAG: st.b [[R2]], -; CHECK: .size llvm_mips_fill_b_test +; MIPS-ANY: llvm_mips_fill_b_test: +; MIPS32-DAG: lw [[R1:\$[0-9]+]], +; MIPS-ANY-DAG: fill.b [[R2:\$w[0-9]+]], [[R1]] +; MIPS-ANY-DAG: st.b [[R2]], +; MIPS-ANY: .size llvm_mips_fill_b_test ; @llvm_mips_fill_h_ARG1 = global i32 23, align 16 @llvm_mips_fill_h_RES = global <8 x i16> , align 16 @@ -36,11 +38,11 @@ entry: declare <8 x i16> @llvm.mips.fill.h(i32) nounwind -; CHECK: llvm_mips_fill_h_test: -; CHECK-DAG: lw [[R1:\$[0-9]+]], -; CHECK-DAG: fill.h [[R2:\$w[0-9]+]], [[R1]] -; CHECK-DAG: st.h [[R2]], -; CHECK: .size llvm_mips_fill_h_test +; MIPS-ANY: llvm_mips_fill_h_test: +; MIPS32-DAG: lw [[R1:\$[0-9]+]], +; MIPS-ANY-DAG: fill.h [[R2:\$w[0-9]+]], [[R1]] +; MIPS-ANY-DAG: st.h [[R2]], +; MIPS-ANY: .size llvm_mips_fill_h_test ; @llvm_mips_fill_w_ARG1 = global i32 23, align 16 @llvm_mips_fill_w_RES = global <4 x i32> , align 16 @@ -55,11 +57,11 @@ entry: declare <4 x i32> @llvm.mips.fill.w(i32) nounwind -; CHECK: llvm_mips_fill_w_test: -; CHECK-DAG: lw [[R1:\$[0-9]+]], -; CHECK-DAG: fill.w [[R2:\$w[0-9]+]], [[R1]] -; CHECK-DAG: st.w [[R2]], -; CHECK: .size llvm_mips_fill_w_test +; MIPS-ANY: llvm_mips_fill_w_test: +; MIPS32-DAG: lw [[R1:\$[0-9]+]], +; MIPS-ANY-DAG: fill.w [[R2:\$w[0-9]+]], [[R1]] +; MIPS-ANY-DAG: st.w [[R2]], +; MIPS-ANY: .size llvm_mips_fill_w_test ; @llvm_mips_fill_d_ARG1 = global i64 23, align 16 @llvm_mips_fill_d_RES = global <2 x i64> , align 16 @@ -74,14 +76,14 @@ entry: declare <2 x i64> @llvm.mips.fill.d(i64) nounwind -; CHECK: llvm_mips_fill_d_test: -; CHECK-DAG: lw [[R1:\$[0-9]+]], 0( -; CHECK-DAG: lw [[R2:\$[0-9]+]], 4( -; CHECK-DAG: ldi.b [[R3:\$w[0-9]+]], 0 -; CHECK-DAG: insert.w [[R3]][0], [[R1]] -; CHECK-DAG: insert.w [[R3]][1], [[R2]] -; CHECK-DAG: insert.w [[R3]][2], [[R1]] -; CHECK-DAG: insert.w [[R3]][3], [[R2]] -; CHECK-DAG: st.w [[R3]], -; CHECK: .size llvm_mips_fill_d_test +; MIPS-ANY: llvm_mips_fill_d_test: +; MIPS32-DAG: lw [[R1:\$[0-9]+]], 0( +; MIPS32-DAG: lw [[R2:\$[0-9]+]], 4( +; MIPS32-DAG: ldi.b [[R3:\$w[0-9]+]], 0 +; MIPS32-DAG: insert.w [[R3]][0], [[R1]] +; MIPS32-DAG: insert.w [[R3]][1], [[R2]] +; MIPS32-DAG: insert.w [[R3]][2], [[R1]] +; MIPS32-DAG: insert.w [[R3]][3], [[R2]] +; MIPS32-DAG: st.w [[R3]], +; MIPS-ANY: .size llvm_mips_fill_d_test ;