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/compile: invalid instruction on nacl amd64p32 #15252

Closed
brtzsnr opened this issue Apr 12, 2016 · 1 comment
Closed

cmd/compile: invalid instruction on nacl amd64p32 #15252

brtzsnr opened this issue Apr 12, 2016 · 1 comment
Milestone

Comments

@brtzsnr
Copy link
Contributor

brtzsnr commented Apr 12, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    tip
  2. What operating system and processor architecture are you using (go env)?
    nacl amd6432
  3. What did you do?
    See change: https://go-review.googlesource.com/#/c/21872/
  4. What did you expect to see?
    To compile:
  5. What did you see instead?
    cmd/compile/internal/ssa/zcse.go:83: invalid instruction: 01074 (/tmp/workdir/go/src/cmd/compile/internal/ssa/phiopt.go:66) MOVQL 16(R15)(R8*1), BX

https://storage.googleapis.com/go-build-log/c2282152/nacl-amd64p32_0c3a4e20.log

@randall77

@bradfitz bradfitz added this to the Go1.7 milestone Apr 14, 2016
@randall77
Copy link
Contributor

Small repro:

package main

type T struct {
    i int64
}

func f(v *T) int32 {
    ops := [2]int32{3, 4}
    return ops[v.i]

}

@golang golang locked and limited conversation to collaborators Apr 15, 2017
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

4 participants