Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/asm: no support for TBZ/TBNZ instructions on arm64 #18069

Closed
williamweixiao opened this issue Nov 28, 2016 · 1 comment
Closed

cmd/asm: no support for TBZ/TBNZ instructions on arm64 #18069

williamweixiao opened this issue Nov 28, 2016 · 1 comment
Milestone

Comments

@williamweixiao
Copy link
Member

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

@gopherbot
Copy link

CL https://golang.org/cl/33594 mentions this issue.

@minux 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
@minux minux added this to the Go1.9 milestone Nov 28, 2016
@golang golang locked and limited conversation to collaborators Mar 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants