diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-13 17:30:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-13 17:30:25 +0000 |
commit | 61a0bac2bef8c093fc6e960971cde7d580efbaf8 (patch) | |
tree | ecf1dcc37d978ee196dd4a09b22471765ccb54fc /test/CodeGen/X86/mmx-shift.ll | |
parent | b666fd553d7729da0d26a63331b262fa6a680718 (diff) | |
download | llvm-61a0bac2bef8c093fc6e960971cde7d580efbaf8.tar.gz llvm-61a0bac2bef8c093fc6e960971cde7d580efbaf8.tar.bz2 llvm-61a0bac2bef8c093fc6e960971cde7d580efbaf8.tar.xz |
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
Diffstat (limited to 'test/CodeGen/X86/mmx-shift.ll')
-rw-r--r-- | test/CodeGen/X86/mmx-shift.ll | 15 |
1 files changed, 11 insertions, 4 deletions
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 ) ; <x86_mmx> [#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 ; <x86_mmx> [#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 ; <x86_mmx> [#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 |