aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-02-11 21:16:00 -0500
committerRuss Cox <rsc@golang.org>2015-02-12 03:15:41 +0000
commit01925bd3f306c899cddfa59aa2ad41c9b77fcd74 (patch)
treee1b99899a634b7d51e7ec66c93c317390447068a /src/cmd
parentfbd17986ea386cfcfb5c8ced43ef3f429825cc1a (diff)
downloadgo-01925bd3f306c899cddfa59aa2ad41c9b77fcd74.tar.xz
[dev.cc] liblink, cmd/internal/obj: fix printing of TYPE_REGREG and TYPE_REGREG2
Now: 0x0000 00000 (/tmp/x.s:2) MULLU R6,R3,(R7, R6) The space is a little odd but I'd rather fix the usual printing to add spaces than delete that one. But in a different CL, once C is gone. Change-Id: I344e0b06eedaaf53cd79d370fa13c444a1e69c81 Reviewed-on: https://go-review.googlesource.com/4647 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/internal/obj/arm/list5.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/arm/list5.go b/src/cmd/internal/obj/arm/list5.go
index c37a563621..9986d14931 100644
--- a/src/cmd/internal/obj/arm/list5.go
+++ b/src/cmd/internal/obj/arm/list5.go
@@ -190,7 +190,12 @@ func Dconv(p *obj.Prog, flag int, a *obj.Addr) string {
case obj.TYPE_SCONST:
str = fmt.Sprintf("$\"%q\"", a.U.Sval)
- break
+
+ case obj.TYPE_REGREG:
+ str = fmt.Sprintf("(%v, %v)", Rconv(int(a.Reg)), Rconv(int(a.Offset)))
+
+ case obj.TYPE_REGREG2:
+ str = fmt.Sprintf("%v, %v", Rconv(int(a.Reg)), Rconv(int(a.Offset)))
}
fp += str