From 61a0bac2bef8c093fc6e960971cde7d580efbaf8 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 13 Jul 2013 17:30:25 +0000 Subject: Convert a couple of grep tests to FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186250 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/mmx-shift.ll | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'test/CodeGen/X86/mmx-shift.ll') diff --git a/test/CodeGen/X86/mmx-shift.ll b/test/CodeGen/X86/mmx-shift.ll index bafc75444d..2b6dc6fd04 100644 --- a/test/CodeGen/X86/mmx-shift.ll +++ b/test/CodeGen/X86/mmx-shift.ll @@ -1,7 +1,5 @@ -; RUN: llc < %s -march=x86 -mattr=+mmx | grep psllq | grep 32 -; RUN: llc < %s -march=x86-64 -mattr=+mmx | grep psllq | grep 32 -; RUN: llc < %s -march=x86 -mattr=+mmx | grep psrad -; RUN: llc < %s -march=x86-64 -mattr=+mmx | grep psrlw +; RUN: llc < %s -march=x86 -mattr=+mmx | FileCheck %s +; RUN: llc < %s -march=x86-64 -mattr=+mmx | FileCheck %s define i64 @t1(<1 x i64> %mm1) nounwind { entry: @@ -9,6 +7,9 @@ entry: %tmp6 = tail call x86_mmx @llvm.x86.mmx.pslli.q( x86_mmx %tmp, i32 32 ) ; [#uses=1] %retval1112 = bitcast x86_mmx %tmp6 to i64 ret i64 %retval1112 + +; CHECK: t1: +; CHECK: psllq $32 } declare x86_mmx @llvm.x86.mmx.pslli.q(x86_mmx, i32) nounwind readnone @@ -18,6 +19,9 @@ entry: %tmp7 = tail call x86_mmx @llvm.x86.mmx.psra.d( x86_mmx %mm1, x86_mmx %mm2 ) nounwind readnone ; [#uses=1] %retval1112 = bitcast x86_mmx %tmp7 to i64 ret i64 %retval1112 + +; CHECK: t2: +; CHECK: psrad } declare x86_mmx @llvm.x86.mmx.psra.d(x86_mmx, x86_mmx) nounwind readnone @@ -27,6 +31,9 @@ entry: %tmp8 = tail call x86_mmx @llvm.x86.mmx.psrli.w( x86_mmx %mm1, i32 %bits ) nounwind readnone ; [#uses=1] %retval1314 = bitcast x86_mmx %tmp8 to i64 ret i64 %retval1314 + +; CHECK: t3: +; CHECK: psrlw } declare x86_mmx @llvm.x86.mmx.psrli.w(x86_mmx, i32) nounwind readnone -- cgit v1.2.3