]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/ssa/rewriteWasm.go
internal/buildcfg: move build configuration out of cmd/internal/objabi
[gostls13.git] / src / cmd / compile / internal / ssa / rewriteWasm.go
index 6efcdfe37148150e07abd38f2ff6feaad8089931..ed23ae032a29c06233141cd497fa90a6f2981938 100644 (file)
@@ -3,9 +3,11 @@
 
 package ssa
 
-import "math"
-import "cmd/internal/objabi"
-import "cmd/compile/internal/types"
+import (
+       "cmd/compile/internal/types"
+       "internal/buildcfg"
+       "math"
+)
 
 func rewriteValueWasm(v *Value) bool {
        switch v.Op {
@@ -3193,11 +3195,11 @@ func rewriteValueWasm_OpSignExt16to32(v *Value) bool {
                return true
        }
        // match: (SignExt16to32 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend16S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend16S)
@@ -3232,11 +3234,11 @@ func rewriteValueWasm_OpSignExt16to64(v *Value) bool {
                return true
        }
        // match: (SignExt16to64 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend16S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend16S)
@@ -3271,11 +3273,11 @@ func rewriteValueWasm_OpSignExt32to64(v *Value) bool {
                return true
        }
        // match: (SignExt32to64 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend32S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend32S)
@@ -3310,11 +3312,11 @@ func rewriteValueWasm_OpSignExt8to16(v *Value) bool {
                return true
        }
        // match: (SignExt8to16 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend8S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend8S)
@@ -3349,11 +3351,11 @@ func rewriteValueWasm_OpSignExt8to32(v *Value) bool {
                return true
        }
        // match: (SignExt8to32 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend8S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend8S)
@@ -3388,11 +3390,11 @@ func rewriteValueWasm_OpSignExt8to64(v *Value) bool {
                return true
        }
        // match: (SignExt8to64 x)
-       // cond: objabi.GOWASM.SignExt
+       // cond: buildcfg.GOWASM.SignExt
        // result: (I64Extend8S x)
        for {
                x := v_0
-               if !(objabi.GOWASM.SignExt) {
+               if !(buildcfg.GOWASM.SignExt) {
                        break
                }
                v.reset(OpWasmI64Extend8S)