]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: correct the argument type in SETXXstore -> MOVBstore rules on AMD64
authorCherry Zhang <cherryyz@google.com>
Sun, 12 May 2019 00:26:18 +0000 (20:26 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 13 May 2019 19:04:43 +0000 (19:04 +0000)
commit23f3ea82b998e60c500e711dab340852c967ec41
treedf4cf44b87298e0e2064a577d21b544078a3d8c7
parent6ca324f2837db696dff8e7d7342280dd5cdf6bca
cmd/compile: correct the argument type in SETXXstore -> MOVBstore rules on AMD64

MOVBstore's value argument is a value, not a flag. We are storing
a byte so just use UInt8.

Fixes #31915.

Change-Id: Id799e5f44efc3a9c3d8480f6f25ad032c2a631bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/176719
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
test/fixedbugs/issue31915.go [new file with mode: 0644]