You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tbz.s:3: illegal or missing addressing mode for symbol label
tbz.s:5: illegal or missing addressing mode for symbol label
asm: assembly of tbz.s failed
The text was updated successfully, but these errors were encountered:
minux
changed the title
cmd/asm:TBZ/TBNZ instructions are incorrectly supported on arm64
cmd/asm: no support for TBZ/TBNZ instructions on arm64
Nov 28, 2016
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7.3 linux/arm64
What operating system and processor architecture are you using (
go env
)?GOARCH="arm64"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/weixia01/workspace/golang/gocode"
GORACE=""
GOROOT="/home/weixia01/workspace/go-go1.7.3"
GOTOOLDIR="/home/weixia01/workspace/go-go1.7.3/pkg/tool/linux_arm64"
CC="gcc"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build695199653=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
Assemble following assembly code (tbz.s):
1
2TEXT test?tbz(SB),0,$0-0
3 TBZ $3, R1, label
4 MOVD.P ZR, 8(R0)
5 TBNZ $3, R2, label
6 MOVD.P ZR, 8(R1)
7
8label:
9 RET
with command:
$ go tool asm tbz.s
What did you expect to see?
Assemble successfully
What did you see instead?
tbz.s:3: illegal or missing addressing mode for symbol label
tbz.s:5: illegal or missing addressing mode for symbol label
asm: assembly of tbz.s failed
The text was updated successfully, but these errors were encountered: