diff options
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 |