Sparc: Combine add/or/sethi instruction with restore if possible.
[oota-llvm.git] / test / CodeGen / SPARC / 2011-01-11-FrameAddr.ll
index 683d30266717bf8658076be05562a65f97071b48..5fd5687ba5b6fbe91c4b295eda358c39e552646a 100644 (file)
@@ -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
 }