From da4c3f365a90c7b3afdefae4663b0ffb615edd93 Mon Sep 17 00:00:00 2001 From: pcpa Date: Wed, 20 Feb 2013 15:37:11 -0300 Subject: [PATCH] Correct SPARC optimized assembly example in documentation * doc/body.texi: Fool proof validate the examples of what an assembly-language programmer would write and correct the wrong sparc example. --- ChangeLog | 6 ++++++ doc/body.texi | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d6007f3a..16ba88d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-02-20 Paulo Andrade + + * doc/body.texi: Fool proof validate the examples of what + an assembly-language programmer would write and correct the + wrong sparc example. + 2013-02-19 Paulo Andrade * doc/body.texi: Add back the SPARC code generation example. diff --git a/doc/body.texi b/doc/body.texi index 7d3099d75..c9c3b29d7 100644 --- a/doc/body.texi +++ b/doc/body.texi @@ -718,8 +718,8 @@ programmer would write): @item SPARC @example save %sp, -112, %sp - mov %i0, %g2 ret - inc %g2 inc %i0 + mov %i0, %g2 retl + inc %g2 inc %o0 mov %g2, %i0 restore retl