]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add 32 bit float registers/variables on wasm
authorRichard Musiol <mail@richard-musiol.de>
Thu, 12 Sep 2019 19:05:45 +0000 (21:05 +0200)
committerRichard Musiol <neelance@gmail.com>
Thu, 19 Sep 2019 20:26:22 +0000 (20:26 +0000)
commit1c50fcf853b0382ac6a98e4c84eb90230b37832f
tree8a2cae8417dfb56aef62a5978ffa98bb7e6eea3b
parentd6c2f1e90ed2eb25ca5b00fef9a4d13b01a4a1c5
cmd/compile: add 32 bit float registers/variables on wasm

Before this change, wasm only used float variables with a size of 64 bit
and applied rounding to 32 bit precision where necessary. This change
adds proper 32 bit float variables.

Reduces the size of pkg/js_wasm by 254 bytes.

Change-Id: Ieabe846a8cb283d66def3cdf11e2523b3b31f345
Reviewed-on: https://go-review.googlesource.com/c/go/+/195117
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/Wasm.rules
src/cmd/compile/internal/ssa/gen/WasmOps.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/rewriteWasm.go
src/cmd/compile/internal/wasm/ssa.go
src/cmd/internal/obj/wasm/a.out.go
src/cmd/internal/obj/wasm/wasmobj.go