summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-23 09:03:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-23 09:03:22 +0000
commit9f8fddeed83a9b1c31b839db2c0692aa0b69433f (patch)
tree1d5c50458287d05bdef687e0f21edc55d3edfaf6 /llvm/test/CodeGen
parent9af0d0c97ec7f3eb03b6d93a1dd6a6a84960ff09 (diff)
downloadbcm5719-llvm-9f8fddeed83a9b1c31b839db2c0692aa0b69433f.tar.gz
bcm5719-llvm-9f8fddeed83a9b1c31b839db2c0692aa0b69433f.zip
Only v1i16 (i.e. _m64) is returned via RAX / RDX.
llvm-svn: 65313
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/ret-mmx.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/ret-mmx.ll b/llvm/test/CodeGen/X86/ret-mmx.ll
index 6587eabb766..48f611484ef 100644
--- a/llvm/test/CodeGen/X86/ret-mmx.ll
+++ b/llvm/test/CodeGen/X86/ret-mmx.ll
@@ -10,8 +10,17 @@ entry:
ret void
}
+declare <1 x i64> @return_v1di()
+
define <1 x i64> @t2() nounwind {
ret <1 x i64> <i64 1>
}
-declare <1 x i64> @return_v1di()
+define <2 x i32> @t3() nounwind {
+ ret <2 x i32> <i32 1, i32 0>
+}
+
+define double @t4() nounwind {
+ ret double bitcast (<2 x i32> <i32 1, i32 0> to double)
+}
+
OpenPOWER on IntegriCloud