aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/testdata
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-05-03 17:21:36 -0700
committerKeith Randall <khr@golang.org>2016-05-04 00:49:13 +0000
commit9f8ecd75fcbee462dc9f1f2d1ce1025a14e1cf5b (patch)
treed6febb3b7a009bfbf0539d227ca0018828b649a8 /src/cmd/compile/internal/gc/testdata
parent9dee7771f561cf6aee081c0af6658cc81fac3918 (diff)
downloadgo-9f8ecd75fcbee462dc9f1f2d1ce1025a14e1cf5b.tar.xz
cmd/compile: use SSA tests on legacy compiler
Why not? Because the 386 backend can't handle one of them. But other than that, it should work. Change-Id: Iaeb9735f8c3c281136a0734376dec5ddba21be3b Reviewed-on: https://go-review.googlesource.com/22748 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/testdata')
-rw-r--r--src/cmd/compile/internal/gc/testdata/arithConst_ssa.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/gc/testdata/arithConst_ssa.go b/src/cmd/compile/internal/gc/testdata/arithConst_ssa.go
index 093504fdfe..21bcd633e1 100644
--- a/src/cmd/compile/internal/gc/testdata/arithConst_ssa.go
+++ b/src/cmd/compile/internal/gc/testdata/arithConst_ssa.go
@@ -179,7 +179,7 @@ func lsh_1_uint64_ssa(a uint64) uint64 {
//go:noinline
func lsh_uint64_4294967296_ssa(a uint64) uint64 {
- return a << 4294967296
+ return a << uint64(4294967296)
}
//go:noinline
@@ -189,7 +189,7 @@ func lsh_4294967296_uint64_ssa(a uint64) uint64 {
//go:noinline
func lsh_uint64_18446744073709551615_ssa(a uint64) uint64 {
- return a << 18446744073709551615
+ return a << uint64(18446744073709551615)
}
//go:noinline
@@ -219,7 +219,7 @@ func rsh_1_uint64_ssa(a uint64) uint64 {
//go:noinline
func rsh_uint64_4294967296_ssa(a uint64) uint64 {
- return a >> 4294967296
+ return a >> uint64(4294967296)
}
//go:noinline
@@ -229,7 +229,7 @@ func rsh_4294967296_uint64_ssa(a uint64) uint64 {
//go:noinline
func rsh_uint64_18446744073709551615_ssa(a uint64) uint64 {
- return a >> 18446744073709551615
+ return a >> uint64(18446744073709551615)
}
//go:noinline