aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2023-01-23 13:31:00 -0500
committerCherry Mui <cherryyz@google.com>2023-06-01 19:29:08 +0000
commitfdb3dc471d099cf04cfa575a2bc8d51999917e1e (patch)
tree676644bf5fae5b88667e9ba43ab9dea15e6ea543 /src
parentc2e0bf0abf8d0b22803521dfc2194dc56741e0dd (diff)
downloadgo-fdb3dc471d099cf04cfa575a2bc8d51999917e1e.tar.xz
cmd/internal/obj/arm: handle HAUTO etc. in addpool
HAUTO should be handled the same way as other stack offsets for adding to constant pool. Add the missing cases. Fixes #57955. Change-Id: If7fc82cafb2bbf0a6121e73e353b8825cb36b5bc Reviewed-on: https://go-review.googlesource.com/c/go/+/463138 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/obj/arm/asm5.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cmd/internal/obj/arm/asm5.go b/src/cmd/internal/obj/arm/asm5.go
index 7b1682776e..177ffd9797 100644
--- a/src/cmd/internal/obj/arm/asm5.go
+++ b/src/cmd/internal/obj/arm/asm5.go
@@ -688,13 +688,16 @@ func (c *ctxt5) addpool(p *obj.Prog, a *obj.Addr) {
t.Rel = p
}
- case C_SROREG,
- C_LOREG,
- C_ROREG,
+ case C_HOREG,
C_FOREG,
+ C_HFOREG,
C_SOREG,
- C_HOREG,
+ C_ROREG,
+ C_SROREG,
+ C_LOREG,
+ C_HAUTO,
C_FAUTO,
+ C_HFAUTO,
C_SAUTO,
C_LAUTO,
C_LACON: