diff options
author | Cherry Zhang <cherryyz@google.com> | 2018-04-13 15:02:07 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2018-04-17 18:27:55 +0000 |
commit | f83e4212688c8dfc9a34f7735fa74d14e7995388 (patch) | |
tree | 6f53e0c8c530da0b512020d8c4bfaf8b5cb0206f /src/runtime/stubs_arm.go | |
parent | 58b18cfda5fa96330df00c529c36f207eae08cbc (diff) | |
download | go-f83e4212688c8dfc9a34f7735fa74d14e7995388.tar.gz go-f83e4212688c8dfc9a34f7735fa74d14e7995388.zip |
cmd/internal/obj/arm, runtime: delete old ARM softfloat code
CL 106735 changed to the new softfloat support on GOARM=5.
ARM assembly code that uses FP instructions not guarded on GOARM,
if any, will break. The easiest way to fix is probably to use Go
implementation on GOARM=5, like
MOVB runtimeĀ·goarm(SB), R11
CMP $5, R11
BEQ arm5
... FP instructions ...
RET
arm5:
CALL or JMP to Go implementation
Change-Id: I52fc76fac9c854ebe7c6c856c365fba35d3f560a
Reviewed-on: https://go-review.googlesource.com/107475
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stubs_arm.go')
-rw-r--r-- | src/runtime/stubs_arm.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/stubs_arm.go b/src/runtime/stubs_arm.go new file mode 100644 index 0000000000..28ab6b16e8 --- /dev/null +++ b/src/runtime/stubs_arm.go @@ -0,0 +1,13 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package runtime + +// Stubs to pacify vet. Not safe to call from Go. +// Calls to these functions are inserted by the compiler or assembler. +func udiv() +func _div() +func _divu() +func _mod() +func _modu() |