Support return of MMX values in 64-bit mode.
[oota-llvm.git] / test / CodeGen / X86 / ret-mmx.ll
diff --git a/test/CodeGen/X86/ret-mmx.ll b/test/CodeGen/X86/ret-mmx.ll
new file mode 100644 (file)
index 0000000..fe93805
--- /dev/null
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+mmx
+; rdar://6602459
+
+@g_v1di = external global <1 x i64>
+
+define void @test_v1di() nounwind {
+entry:
+       %call = call <1 x i64> @return_v1di()           ; <<1 x i64>> [#uses=0]
+       store <1 x i64> %call, <1 x i64>* @g_v1di
+        ret void
+}
+
+declare <1 x i64> @return_v1di()