[llvm-commits] [llvm] r44672 - /llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll

Evan Cheng evan.cheng at apple.com
Thu Dec 6 17:48:46 PST 2007


Author: evancheng
Date: Thu Dec  6 19:48:46 2007
New Revision: 44672

URL: http://llvm.org/viewvc/llvm-project?rev=44672&view=rev
Log:
New test case.

Added:
    llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll

Added: llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll?rev=44672&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll (added)
+++ llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.ll Thu Dec  6 19:48:46 2007
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
+
+define void @test(<8 x i16>* %res, <8 x i16>* %A, <8 x i16>* %B) {
+	%tmp1 = load <8 x i16>* %A
+	%tmp2 = load <8 x i16>* %B
+	%tmp3 = shufflevector <8 x i16> %tmp1, <8 x i16> %tmp2, <8 x i32> < i32 8, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7 >
+	store <8 x i16> %tmp3, <8 x i16>* %res
+	ret void
+}





More information about the llvm-commits mailing list