aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/test
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2019-04-23 20:49:05 +0000
committerKeith Randall <khr@golang.org>2019-04-23 21:23:18 +0000
commit17615969b6c910972a4babb4d1c8f009b1d851e3 (patch)
tree0e44b1883f6f9d67a0e4eed071047b5385c8cec2 /src/cmd/compile/internal/test
parent58de7c6d4838729c6c133d9b2461dc6b1f766b76 (diff)
downloadgo-17615969b6c910972a4babb4d1c8f009b1d851e3.tar.gz
go-17615969b6c910972a4babb4d1c8f009b1d851e3.zip
Revert "cmd/compile: add signed divisibility by power of 2 rules"
This reverts CL 168038 (git 68819fb6d2bab59e4eadcdf62aa4a2a54417d640) Reason for revert: Doesn't work on 32 bit archs. Change-Id: Idec9098060dc65bc2f774c5383f0477f8eb63a3d Reviewed-on: https://go-review.googlesource.com/c/go/+/173442 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/test')
-rw-r--r--src/cmd/compile/internal/test/divconst_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/cmd/compile/internal/test/divconst_test.go b/src/cmd/compile/internal/test/divconst_test.go
index 6b0bc4a6fb..f585a5b51f 100644
--- a/src/cmd/compile/internal/test/divconst_test.go
+++ b/src/cmd/compile/internal/test/divconst_test.go
@@ -8,8 +8,6 @@ import (
"testing"
)
-var boolres bool
-
var i64res int64
func BenchmarkDivconstI64(b *testing.B) {
@@ -18,12 +16,6 @@ func BenchmarkDivconstI64(b *testing.B) {
}
}
-func BenchmarkDivisiblePow2constI64(b *testing.B) {
- for i := 0; i < b.N; i++ {
- boolres = int64(i)%16 == 0
- }
-}
-
var u64res uint64
func BenchmarkDivconstU64(b *testing.B) {
@@ -40,12 +32,6 @@ func BenchmarkDivconstI32(b *testing.B) {
}
}
-func BenchmarkDivisiblePow2constI32(b *testing.B) {
- for i := 0; i < b.N; i++ {
- boolres = int32(i)%16 == 0
- }
-}
-
var u32res uint32
func BenchmarkDivconstU32(b *testing.B) {
@@ -62,12 +48,6 @@ func BenchmarkDivconstI16(b *testing.B) {
}
}
-func BenchmarkDivisiblePow2constI16(b *testing.B) {
- for i := 0; i < b.N; i++ {
- boolres = int16(i)%16 == 0
- }
-}
-
var u16res uint16
func BenchmarkDivconstU16(b *testing.B) {
@@ -84,12 +64,6 @@ func BenchmarkDivconstI8(b *testing.B) {
}
}
-func BenchmarkDivisiblePow2constI8(b *testing.B) {
- for i := 0; i < b.N; i++ {
- boolres = int8(i)%16 == 0
- }
-}
-
var u8res uint8
func BenchmarkDivconstU8(b *testing.B) {