Description
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 (shiftopd.s):
1
2TEXT test?shiftopd(SB),0,$0-0
3 ADD R1>>1, R2, R0
4 RET
with command:
go tool asm shiftopd.s
What did you expect to see?
Assemble successfully
What did you see instead?
shiftopd.s:3: expected end of operand, found >>
asm: assembly of shiftopd.s failed