From: Josh Bleecher Snyder Date: Sat, 25 Jun 2016 23:07:56 +0000 (-0700) Subject: [dev.ssa] cmd/compile: provide default types for all extension ops X-Git-Tag: go1.8beta1~1892^2^2~48 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=68dc102ed1e2263c0c7469d6e48046eb35954a55;p=gostls13.git [dev.ssa] cmd/compile: provide default types for all extension ops Change-Id: I655327818297cc6792c81912f2cebdc321381561 Reviewed-on: https://go-review.googlesource.com/24465 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/ssa/gen/genericOps.go b/src/cmd/compile/internal/ssa/gen/genericOps.go index e35da2bb64..c0bed93372 100644 --- a/src/cmd/compile/internal/ssa/gen/genericOps.go +++ b/src/cmd/compile/internal/ssa/gen/genericOps.go @@ -327,16 +327,16 @@ var genericOps = []opData{ // Conversions: signed extensions, zero (unsigned) extensions, truncations {name: "SignExt8to16", argLength: 1, typ: "Int16"}, {name: "SignExt8to32", argLength: 1, typ: "Int32"}, - {name: "SignExt8to64", argLength: 1}, + {name: "SignExt8to64", argLength: 1, typ: "Int64"}, {name: "SignExt16to32", argLength: 1, typ: "Int32"}, - {name: "SignExt16to64", argLength: 1}, - {name: "SignExt32to64", argLength: 1}, + {name: "SignExt16to64", argLength: 1, typ: "Int64"}, + {name: "SignExt32to64", argLength: 1, typ: "Int64"}, {name: "ZeroExt8to16", argLength: 1, typ: "UInt16"}, {name: "ZeroExt8to32", argLength: 1, typ: "UInt32"}, - {name: "ZeroExt8to64", argLength: 1}, + {name: "ZeroExt8to64", argLength: 1, typ: "UInt64"}, {name: "ZeroExt16to32", argLength: 1, typ: "UInt32"}, - {name: "ZeroExt16to64", argLength: 1}, - {name: "ZeroExt32to64", argLength: 1}, + {name: "ZeroExt16to64", argLength: 1, typ: "UInt64"}, + {name: "ZeroExt32to64", argLength: 1, typ: "UInt64"}, {name: "Trunc16to8", argLength: 1}, {name: "Trunc32to8", argLength: 1}, {name: "Trunc32to16", argLength: 1},