@@ -62,9 +62,6 @@ func initssaconfig() {
62
62
_ = types .NewPtr (types .Errortype ) // *error
63
63
types .NewPtrCacheEnabled = false
64
64
ssaConfig = ssa .NewConfig (thearch .LinkArch .Name , * types_ , Ctxt , Debug ['N' ] == 0 )
65
- if thearch .LinkArch .Name == "386" {
66
- ssaConfig .Set387 (thearch .Use387 )
67
- }
68
65
ssaConfig .SoftFloat = thearch .SoftFloat
69
66
ssaConfig .Race = flag_race
70
67
ssaCaches = make ([]ssa.Cache , nBackendWorkers )
@@ -175,10 +172,6 @@ func initssaconfig() {
175
172
ExtendCheckFunc [ssa .BoundsSlice3CU ] = sysvar ("panicExtendSlice3CU" )
176
173
}
177
174
178
- // GO386=387 runtime definitions
179
- ControlWord64trunc = sysvar ("controlWord64trunc" ) // uint16
180
- ControlWord32 = sysvar ("controlWord32" ) // uint16
181
-
182
175
// Wasm (all asm funcs with special ABIs)
183
176
WasmMove = sysvar ("wasmMove" )
184
177
WasmZero = sysvar ("wasmZero" )
@@ -5946,9 +5939,7 @@ type SSAGenState struct {
5946
5939
// bstart remembers where each block starts (indexed by block ID)
5947
5940
bstart []* obj.Prog
5948
5941
5949
- // 387 port: maps from SSE registers (REG_X?) to 387 registers (REG_F?)
5950
- SSEto387 map [int16 ]int16
5951
- // Some architectures require a 64-bit temporary for FP-related register shuffling. Examples include x86-387, PPC, and Sparc V8.
5942
+ // Some architectures require a 64-bit temporary for FP-related register shuffling. Examples include PPC and Sparc V8.
5952
5943
ScratchFpMem * Node
5953
5944
5954
5945
maxarg int64 // largest frame size for arguments to calls made by the function
@@ -6115,10 +6106,6 @@ func genssa(f *ssa.Func, pp *Progs) {
6115
6106
progToBlock [s .pp .next ] = f .Blocks [0 ]
6116
6107
}
6117
6108
6118
- if thearch .Use387 {
6119
- s .SSEto387 = map [int16 ]int16 {}
6120
- }
6121
-
6122
6109
s .ScratchFpMem = e .scratchFpMem
6123
6110
6124
6111
if Ctxt .Flag_locationlists {
0 commit comments