[llvm-commits] [llvm] r115303 - /llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll
Bill Wendling
isanbard at gmail.com
Fri Oct 1 01:50:12 PDT 2010
Author: void
Date: Fri Oct 1 03:50:12 2010
New Revision: 115303
URL: http://llvm.org/viewvc/llvm-project?rev=115303&view=rev
Log:
FileCheck-ize this test.
Modified:
llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll
Modified: llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll?rev=115303&r1=115302&r2=115303&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll Fri Oct 1 03:50:12 2010
@@ -1,8 +1,9 @@
-; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 | grep pextrd
-; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 | grep punpckhdq | count 1
+; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 | FileCheck %s
+; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 | FileCheck %s
; There are no MMX operations in bork; promoted to XMM.
define void @bork(<1 x i64>* %x) {
+; CHECK: pextrd
entry:
%tmp2 = load <1 x i64>* %x ; <<1 x i64>> [#uses=1]
%tmp6 = bitcast <1 x i64> %tmp2 to <2 x i32> ; <<2 x i32>> [#uses=1]
@@ -16,6 +17,7 @@
; pork uses MMX.
define void @pork(x86_mmx* %x) {
+; CHECK: punpckhdq
entry:
%tmp2 = load x86_mmx* %x ; <x86_mmx> [#uses=1]
%tmp9 = tail call x86_mmx @llvm.x86.mmx.punpckhdq (x86_mmx %tmp2, x86_mmx %tmp2)
More information about the llvm-commits
mailing list