diff options
author | Russ Cox <rsc@golang.org> | 2012-09-24 20:57:01 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-09-24 20:57:01 -0400 |
commit | 10ea6519e4e61d47385ca7b7f60ca96856271de7 (patch) | |
tree | 97bbc154b3bb2b0d5807a359f31a7c72550bee5d /test/index.go | |
parent | f8c58373e53a9399a9ea75f744c717fc59be3839 (diff) | |
download | go-10ea6519e4e61d47385ca7b7f60ca96856271de7.tar.gz go-10ea6519e4e61d47385ca7b7f60ca96856271de7.zip |
build: make int 64 bits on amd64
The assembly offsets were converted mechanically using
code.google.com/p/rsc/cmd/asmlint. The instruction
changes were done by hand.
Fixes #2188.
R=iant, r, bradfitz, remyoudompheng
CC=golang-dev
https://golang.org/cl/6550058
Diffstat (limited to 'test/index.go')
-rw-r--r-- | test/index.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/index.go b/test/index.go index 447d708969..122b2a5724 100644 --- a/test/index.go +++ b/test/index.go @@ -21,6 +21,7 @@ import ( "flag" "fmt" "os" + "runtime" ) const prolog = ` @@ -224,6 +225,10 @@ func main() { // the next pass from running. // So run it as a separate check. thisPass = 1 + } else if i == "i64big" || i == "i64bigger" && runtime.GOARCH == "amd64" { + // On amd64, these huge numbers do fit in an int, so they are not + // rejected at compile time. + thisPass = 0 } else { thisPass = 2 } |