[llvm-commits] CVS: llvm/test/CodeGen/X86/vec_shuffle-11.ll
Evan Cheng
evan.cheng at apple.com
Mon Jun 18 17:06:30 PDT 2007
Changes in directory llvm/test/CodeGen/X86:
vec_shuffle-11.ll added (r1.1)
---
Log message:
New test case: identity operation of RHS / LHS of a VECTOR_SHUFFLE.
---
Diffs of the changes: (+11 -0)
vec_shuffle-11.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/CodeGen/X86/vec_shuffle-11.ll
diff -c /dev/null llvm/test/CodeGen/X86/vec_shuffle-11.ll:1.1
*** /dev/null Mon Jun 18 19:06:18 2007
--- llvm/test/CodeGen/X86/vec_shuffle-11.ll Mon Jun 18 19:06:08 2007
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
+ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep mov
+
+ define <4 x i32> @test() {
+ %tmp131 = call <2 x i64> @llvm.x86.sse2.psrl.dq( <2 x i64> < i64 -1, i64 -1 >, i32 96 ) ; <<2 x i64>> [#uses=1]
+ %tmp137 = bitcast <2 x i64> %tmp131 to <4 x i32> ; <<4 x i32>> [#uses=1]
+ %tmp138 = and <4 x i32> %tmp137, bitcast (<2 x i64> < i64 -1, i64 -1 > to <4 x i32>) ; <<4 x i32>> [#uses=1]
+ ret <4 x i32> %tmp138
+ }
+
+ declare <2 x i64> @llvm.x86.sse2.psrl.dq(<2 x i64>, i32)
More information about the llvm-commits
mailing list