aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SPARC/2011-01-22-SRet.ll
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2011-02-21 03:42:44 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2011-02-21 03:42:44 +0000
commit58269b973256bf2436cac0f047aa277fe4bc01dd (patch)
tree80d6fd9c8426ea78efa408516d19163dce1dbc1a /test/CodeGen/SPARC/2011-01-22-SRet.ll
parentafcf6ac7a85601690d43e73ee504e281fa6244aa (diff)
downloadexternal_llvm-58269b973256bf2436cac0f047aa277fe4bc01dd.zip
external_llvm-58269b973256bf2436cac0f047aa277fe4bc01dd.tar.gz
external_llvm-58269b973256bf2436cac0f047aa277fe4bc01dd.tar.bz2
Generate correct Sparc32 ABI compliant code for functions that return a struct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC/2011-01-22-SRet.ll')
-rw-r--r--test/CodeGen/SPARC/2011-01-22-SRet.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/SPARC/2011-01-22-SRet.ll b/test/CodeGen/SPARC/2011-01-22-SRet.ll
index 2f684b0..506d3a8 100644
--- a/test/CodeGen/SPARC/2011-01-22-SRet.ll
+++ b/test/CodeGen/SPARC/2011-01-22-SRet.ll
@@ -7,7 +7,7 @@ entry:
;CHECK: make_foo
;CHECK: ld [%fp+64], {{.+}}
;CHECK: or {{.+}}, {{.+}}, %i0
-;CHECK: ret
+;CHECK: jmp %i7+12
%0 = getelementptr inbounds %struct.foo_t* %agg.result, i32 0, i32 0
store i32 %a, i32* %0, align 4
%1 = getelementptr inbounds %struct.foo_t* %agg.result, i32 0, i32 1
@@ -22,6 +22,7 @@ entry:
;CHECK: test
;CHECK: st {{.+}}, [%sp+64]
;CHECK: make_foo
+;CHECK: unimp 12
%f = alloca %struct.foo_t, align 8
call void @make_foo(%struct.foo_t* noalias sret %f, i32 10, i32 20, i32 30) nounwind
%0 = getelementptr inbounds %struct.foo_t* %f, i32 0, i32 0