X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FSPARC%2F2011-01-11-FrameAddr.ll;h=1c8e7d8636ffd8fe48e6fb62ae90b0100aa4bf63;hb=7081f6fc99a596eccd26b8b629e3af2e8e7ca25e;hp=e290ee7f80e00c05d5a5fe2e190b2f49b37abcbc;hpb=6e202a960e5a0cdf96adc83c1ad1d990b5b8aca4;p=oota-llvm.git diff --git a/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll b/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll index e290ee7f80e..1c8e7d8636f 100644 --- a/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll +++ b/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll @@ -9,19 +9,20 @@ define i8* @frameaddr() nounwind readnone { entry: ;V8-LABEL: frameaddr: ;V8: save %sp, -96, %sp -;V8: jmp %i7+8 +;V8: ret ;V8: restore %g0, %fp, %o0 ;V9-LABEL: frameaddr: ;V9: save %sp, -96, %sp -;V9: jmp %i7+8 +;V9: ret ;V9: restore %g0, %fp, %o0 ;SPARC64-LABEL: frameaddr ;SPARC64: save %sp, -128, %sp ;SPARC64: add %fp, 2047, %i0 -;SPARC64: jmp %i7+8 -;SPARC64: restore %g0, %g0, %g0 +;SPARC64: ret +;SPARC64-NOT: restore %g0, %g0, %g0 +;SPARC64: restore %0 = tail call i8* @llvm.frameaddress(i32 0) ret i8* %0 @@ -59,13 +60,13 @@ declare i8* @llvm.frameaddress(i32) nounwind readnone define i8* @retaddr() nounwind readnone { entry: ;V8-LABEL: retaddr: -;V8: or %g0, %o7, {{.+}} +;V8: mov %o7, {{.+}} ;V9-LABEL: retaddr: -;V9: or %g0, %o7, {{.+}} +;V9: mov %o7, {{.+}} ;SPARC64-LABEL: retaddr -;SPARC64: or %g0, %o7, {{.+}} +;SPARC64: mov %o7, {{.+}} %0 = tail call i8* @llvm.returnaddress(i32 0) ret i8* %0