Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7205)

Issue 6962043: code review 6962043: cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by remyoudompheng
Modified:
11 years, 3 months ago
Reviewers:
CC:
minux1, rsc, golang-dev
Visibility:
Public.

Description

cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour. A new environment variable GO386 is introduced to choose between code generation targeting 387 or SSE2. No auto-detection is performed and the setting defaults to 387 to preserve previous behaviour. The patch is a reorganization of CL6549052 by rsc. Fixes issue 3912.

Patch Set 1 #

Patch Set 2 : diff -r 0f6b7cc54b25 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0f6b7cc54b25 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 0f6b7cc54b25 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 5 : diff -r b2bc77ca3160 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r b2bc77ca3160 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r b2bc77ca3160 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1000 lines, -258 lines) Patch
M include/libc.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/8g/cgen.c View 1 2 3 4 11 chunks +21 lines, -113 lines 0 comments Download
M src/cmd/8g/gg.h View 1 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/8g/ggen.c View 1 2 3 4 5 1 chunk +307 lines, -0 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 2 3 4 16 chunks +492 lines, -138 lines 0 comments Download
M src/cmd/8g/list.c View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/cmd/8g/peep.c View 1 2 10 chunks +64 lines, -2 lines 0 comments Download
M src/cmd/8g/reg.c View 1 2 3 4 13 chunks +86 lines, -5 lines 0 comments Download
M src/cmd/dist/build.c View 1 2 3 4 5 chunks +10 lines, -0 lines 0 comments Download
M src/cmd/gc/go.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/lib9/goos.c View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 4 months ago (2012-12-19 21:16:53 UTC) #1
remyoudompheng
The CL is a reorganization of http://codereview.appspot.com/6549052/
11 years, 4 months ago (2012-12-19 21:18:00 UTC) #2
minux1
thank you. i will try to implement the auto detection part for cmd/dist.
11 years, 4 months ago (2012-12-19 21:57:14 UTC) #3
rsc
i think you can get it from the cpuid w/ eax=1.
11 years, 4 months ago (2012-12-20 19:23:52 UTC) #4
rsc
Can you create a global use_sse variable instead of the repeated strcmp calls? It probably ...
11 years, 4 months ago (2012-12-22 22:19:46 UTC) #5
rsc
ping...
11 years, 3 months ago (2013-01-02 20:44:38 UTC) #6
remyoudompheng
Hello minux.ma@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-02 21:40:23 UTC) #7
rsc
LGTM I'd like to autodetect the default GO386 setting but we can do that in ...
11 years, 3 months ago (2013-01-02 21:52:04 UTC) #8
remyoudompheng
https://codereview.appspot.com/6962043/diff/5002/src/cmd/8g/ggen.c File src/cmd/8g/ggen.c (right): https://codereview.appspot.com/6962043/diff/5002/src/cmd/8g/ggen.c#newcode868 src/cmd/8g/ggen.c:868: // floating-point. 387 (not SSE2) to interoperate with 8c ...
11 years, 3 months ago (2013-01-02 21:54:58 UTC) #9
remyoudompheng
*** Submitted as https://code.google.com/p/go/source/detail?r=be005b410410 *** cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour. A new ...
11 years, 3 months ago (2013-01-02 21:56:01 UTC) #10
rsc
11 years, 3 months ago (2013-01-02 22:08:09 UTC) #11
thanks. i started the autodetect in CL 7035055.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b