[llvm-commits] [llvm] r135728 - /llvm/trunk/test/CodeGen/X86/avx-cast.ll

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Thu Jul 21 17:15:03 PDT 2011


Author: bruno
Date: Thu Jul 21 19:15:03 2011
New Revision: 135728

URL: http://llvm.org/viewvc/llvm-project?rev=135728&view=rev
Log:
Although we already support this, add testcases for consistency

Modified:
    llvm/trunk/test/CodeGen/X86/avx-cast.ll

Modified: llvm/trunk/test/CodeGen/X86/avx-cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-cast.ll?rev=135728&r1=135727&r2=135728&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-cast.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-cast.ll Thu Jul 21 19:15:03 2011
@@ -24,3 +24,24 @@
   ret <4 x i64> %shuffle.i
 }
 
+; CHECK: vextractf128 $0
+define <4 x float> @castD(<8 x float> %m) nounwind uwtable readnone ssp {
+entry:
+  %shuffle.i = shufflevector <8 x float> %m, <8 x float> %m, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
+  ret <4 x float> %shuffle.i
+}
+
+; CHECK: vextractf128 $0
+define <2 x i64> @castE(<4 x i64> %m) nounwind uwtable readnone ssp {
+entry:
+  %shuffle.i = shufflevector <4 x i64> %m, <4 x i64> %m, <2 x i32> <i32 0, i32 1>
+  ret <2 x i64> %shuffle.i
+}
+
+; CHECK: vextractf128 $0
+define <2 x double> @castF(<4 x double> %m) nounwind uwtable readnone ssp {
+entry:
+  %shuffle.i = shufflevector <4 x double> %m, <4 x double> %m, <2 x i32> <i32 0, i32 1>
+  ret <2 x double> %shuffle.i
+}
+





More information about the llvm-commits mailing list