]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: simple cleanups
authorKeith Randall <khr@golang.org>
Tue, 20 Sep 2016 20:59:40 +0000 (13:59 -0700)
committerKeith Randall <khr@golang.org>
Tue, 20 Sep 2016 21:45:56 +0000 (21:45 +0000)
Change-Id: If2cf3c5a29afc6cf74c3b08b9745e950231ead37
Reviewed-on: https://go-review.googlesource.com/29441
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/ssa_test.go

index 44be52b93775f8f18cddc9515c40375ab0732e18..e0f60798373be9de7b540f9d140ccad03c17ccb1 100644 (file)
@@ -1690,7 +1690,7 @@ func (s *state) expr(n *Node) *ssa.Value {
                        op := s.ssaOp(OEQ, pt)
                        r := s.newValue2(op, Types[TBOOL], s.newValue1(ssa.OpComplexReal, pt, a), s.newValue1(ssa.OpComplexReal, pt, b))
                        i := s.newValue2(op, Types[TBOOL], s.newValue1(ssa.OpComplexImag, pt, a), s.newValue1(ssa.OpComplexImag, pt, b))
-                       c := s.newValue2(ssa.OpAnd8, Types[TBOOL], r, i)
+                       c := s.newValue2(ssa.OpAndB, Types[TBOOL], r, i)
                        switch n.Op {
                        case OEQ:
                                return c
index b54ada9544ba67071ff9e2191661177d5ff4d19f..debdc4386bd8f3b0f7bbdce4340c0f56aa1e9879 100644 (file)
@@ -9,7 +9,6 @@ import (
        "internal/testenv"
        "os/exec"
        "path/filepath"
-       "runtime"
        "strings"
        "testing"
 )
@@ -49,12 +48,7 @@ func TestBreakContinue(t *testing.T) { runTest(t, "break.go") }
 func TestTypeAssertion(t *testing.T) { runTest(t, "assert.go") }
 
 // TestArithmetic tests that both backends have the same result for arithmetic expressions.
-func TestArithmetic(t *testing.T) {
-       if runtime.GOARCH == "386" {
-               t.Skip("legacy 386 compiler can't handle this test")
-       }
-       runTest(t, "arith.go")
-}
+func TestArithmetic(t *testing.T) { runTest(t, "arith.go") }
 
 // TestFP tests that both backends have the same result for floating point expressions.
 func TestFP(t *testing.T) { runTest(t, "fp.go") }