From 79d05e75ca38f0e4b9986bbba4cd56398428f9fb Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 14 Jun 2017 11:36:36 -0700 Subject: runtime: restore arm assembly stubs for div/mod These are used by DIV[U] and MOD[U] assembly instructions. Add a test in the stdlib so we actually exercise linking to these routines. Update #19507 Change-Id: I0d8e19a53e3744abc0c661ea95486f94ec67585e Reviewed-on: https://go-review.googlesource.com/45703 Reviewed-by: Cherry Zhang --- src/runtime/softfloat_arm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/runtime/softfloat_arm.go') diff --git a/src/runtime/softfloat_arm.go b/src/runtime/softfloat_arm.go index 8519f4cbd5..726699d720 100644 --- a/src/runtime/softfloat_arm.go +++ b/src/runtime/softfloat_arm.go @@ -655,6 +655,10 @@ func sfloat2(pc uint32, regs *[15]uint32) uint32 { } // Stubs to pacify vet. Not safe to call from Go. -// Calls to these functions are inserted by the compiler. +// Calls to these functions are inserted by the compiler or assembler. func _sfloat() func udiv() +func _div() +func _divu() +func _mod() +func _modu() -- cgit v1.3