summaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-20 20:43:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-20 20:43:02 +0000
commit79fb3b434f83bcb7c382dbcfea485884a39b9544 (patch)
tree7166ad77f5af08c582f8b0b398afc328d65b0022 /test/CodeGen
parent9a65cfe7dd7662558b45bcba46b11ee52c4bbf6c (diff)
downloadexternal_llvm-79fb3b434f83bcb7c382dbcfea485884a39b9544.zip
external_llvm-79fb3b434f83bcb7c382dbcfea485884a39b9544.tar.gz
external_llvm-79fb3b434f83bcb7c382dbcfea485884a39b9544.tar.bz2
Support return of MMX values in 64-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/ret-mmx.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/ret-mmx.ll b/test/CodeGen/X86/ret-mmx.ll
new file mode 100644
index 0000000..fe93805
--- /dev/null
+++ b/test/CodeGen/X86/ret-mmx.ll
@@ -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()