diff --git a/src/cmd/internal/obj/arm/list5.go b/src/cmd/internal/obj/arm/list5.go index c37a563621a..9986d149318 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 diff --git a/src/liblink/list5.c b/src/liblink/list5.c index 3d3e8e7d122..bca10f6899d 100644 --- a/src/liblink/list5.c +++ b/src/liblink/list5.c @@ -213,6 +213,14 @@ Dconv(Fmt *fp) case TYPE_SCONST: sprint(str, "$\"%$\"", a->u.sval); break; + + case TYPE_REGREG: + sprint(str, "(%R, %R)", a->reg, (int)a->offset); + break; + + case TYPE_REGREG2: + sprint(str, "%R, %R", a->reg, (int)a->offset); + break; } return fmtstrcpy(fp, str); }