summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-06-02 21:48:17 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-06-02 21:48:17 +0000
commit0bbe1b210e79e7b63d7b5c7c6cdf24e13b5493a1 (patch)
tree7f94c04182b735ad8214b6620cce8856bdac6365 /llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
parentbeb2716901211ad214f9db69e54f456f0286ceeb (diff)
downloadbcm5719-llvm-0bbe1b210e79e7b63d7b5c7c6cdf24e13b5493a1.tar.gz
bcm5719-llvm-0bbe1b210e79e7b63d7b5c7c6cdf24e13b5493a1.zip
Sparc: Combine add/or/sethi instruction with restore if possible.
llvm-svn: 183088
Diffstat (limited to 'llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll')
-rw-r--r--llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll b/llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
index 683d3026671..5fd5687ba5b 100644
--- a/llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
+++ b/llvm/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
@@ -7,10 +7,14 @@
define i8* @frameaddr() nounwind readnone {
entry:
;V8: frameaddr
-;V8: or %g0, %fp, {{.+}}
+;V8: save %sp, -96, %sp
+;V8: jmp %i7+8
+;V8: restore %g0, %fp, %o0
;V9: frameaddr
-;V9: or %g0, %fp, {{.+}}
+;V9: save %sp, -96, %sp
+;V9: jmp %i7+8
+;V9: restore %g0, %fp, %o0
%0 = tail call i8* @llvm.frameaddress(i32 0)
ret i8* %0
}
OpenPOWER on IntegriCloud