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/objdump: does not decode VPUNPCK* AVX2 instructions #55061

Closed
Jorropo opened this issue Sep 14, 2022 · 2 comments
Closed

cmd/objdump: does not decode VPUNPCK* AVX2 instructions #55061

Jorropo opened this issue Sep 14, 2022 · 2 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@Jorropo
Copy link
Member

Jorropo commented Sep 14, 2022

What version of Go are you using (go version)?

$ go version
go version devel go1.20-a813be86df Tue Sep 13 17:43:40 2022 +0000 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/hugo/.cache/go-build"
GOENV="/home/hugo/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/hugo/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/hugo/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/home/hugo/Documents/Scripts/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/hugo/Documents/Scripts/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="devel go1.20-a813be86df Tue Sep 13 17:43:40 2022 +0000"
GCCGO="gccgo"
GOAMD64="v3"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2806241209=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go/src$ go tool asm cmd/asm/internal/asm/testdata/amd64enc.s
go/src$ go tool objdump amd64enc.o | grep amd64enc.s:9975

What did you expect to see?

  amd64enc.s:9975	0x12088			c4e1316813		VPUNPCKHBW (BX), X9, X2

What did you see instead?

  amd64enc.s:9975	0x12088			b168			MOVL $0x68, CL				
  amd64enc.s:9975	0x1208a			13c4			ADCL SP, AX
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 14, 2022
@wdvxdr1123
Copy link
Contributor

Seems duplicate of #48584

@toothrot toothrot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 14, 2022
@toothrot toothrot added this to the Backlog milestone Sep 14, 2022
@randall77
Copy link
Contributor

This is definitely a duplicate, at least in spirit, of #48584. The x86 disassembler needs some modernization. I'll close this issue in favor of that other one, but anyone fixing the disassembler should consider the examples in both issues.

@golang golang locked and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

6 participants