Skip to content

cmd/asm: shift operands unsupported on arm64 (but supported on arm) #18070

Closed
@williamweixiao

Description

@williamweixiao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions