]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify zero ext operations on wasm
authorRichard Musiol <mail@richard-musiol.de>
Thu, 28 Feb 2019 14:20:59 +0000 (15:20 +0100)
committerRichard Musiol <neelance@gmail.com>
Thu, 28 Feb 2019 15:25:42 +0000 (15:25 +0000)
commit72d24a7484063d1ca1113badb481f725382e39b8
treedc5bfaf8e5d5c4317663d6e862909fc40c385411
parent1f17d61026a9d83591db420ba1441c8555d2f4a0
cmd/compile: simplify zero ext operations on wasm

On wasm every integer is stored with 64 bits. We can do zero
extension by simply zeroing the upper bits.

Change-Id: I02c54a38b3b2b7654fff96055edab1b92d48ff32
Reviewed-on: https://go-review.googlesource.com/c/164461
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/rewriteWasm.go