diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-22 08:05:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-22 08:05:12 +0000 |
commit | 6140a8b0572c80383a67248e8b1c0cf2379b1c43 (patch) | |
tree | aa16090e5fa6ac947f5da3b06740f88fb07fb436 /test/CodeGen | |
parent | c94ebef1b1ea6dda54494a0a0eafc96ab685a531 (diff) | |
download | external_llvm-6140a8b0572c80383a67248e8b1c0cf2379b1c43.zip external_llvm-6140a8b0572c80383a67248e8b1c0cf2379b1c43.tar.gz external_llvm-6140a8b0572c80383a67248e8b1c0cf2379b1c43.tar.bz2 |
Be bug compatible with gcc by returning MMX values in RAX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/ret-mmx.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/X86/ret-mmx.ll b/test/CodeGen/X86/ret-mmx.ll index fe93805..6587eab 100644 --- a/test/CodeGen/X86/ret-mmx.ll +++ b/test/CodeGen/X86/ret-mmx.ll @@ -3,11 +3,15 @@ @g_v1di = external global <1 x i64> -define void @test_v1di() nounwind { +define void @t1() 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 } +define <1 x i64> @t2() nounwind { + ret <1 x i64> <i64 1> +} + declare <1 x i64> @return_v1di() |