[commit: ghc] master: PPC NCG: Fix pretty printing of st[wd]ux instr. (2dbdc79)

git at git.haskell.org git at git.haskell.org
Mon May 16 14:50:18 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2dbdc79bb9e2760394ebfe630908813b630146c7/ghc

>---------------------------------------------------------------

commit 2dbdc79bb9e2760394ebfe630908813b630146c7
Author: Peter Trommler <ptrommler at acm.org>
Date:   Mon May 16 15:16:49 2016 +0200

    PPC NCG: Fix pretty printing of st[wd]ux instr.
    
    Printing STU was mixed up. The tab character must appear
    after the 'x'.
    
    Test Plan: validate on powerpc
    
    Reviewers: bgamari, austin, erikd
    
    Reviewed By: austin, erikd
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2214
    
    GHC Trac Issues: #12054


>---------------------------------------------------------------

2dbdc79bb9e2760394ebfe630908813b630146c7
 compiler/nativeGen/PPC/Ppr.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/nativeGen/PPC/Ppr.hs b/compiler/nativeGen/PPC/Ppr.hs
index 3e1fd07..a406a6f 100644
--- a/compiler/nativeGen/PPC/Ppr.hs
+++ b/compiler/nativeGen/PPC/Ppr.hs
@@ -494,9 +494,10 @@ pprInstr (STU fmt reg addr) = hcat [
         char '\t',
         text "st",
         pprFormat fmt,
-        text "u\t",
+        char 'u',
         case addr of AddrRegImm _ _ -> empty
                      AddrRegReg _ _ -> char 'x',
+        char '\t',
         pprReg reg,
         text ", ",
         pprAddr addr



More information about the ghc-commits mailing list