1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:04:40 -07:00

go/ssa/interp: add intrinsic for math.hasVectorFaciliy to fix tests on s390x

Change-Id: I482924585d2d74a25bf88169900a8788b5333738
Reviewed-on: https://go-review.googlesource.com/85235
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Run-TryBot: Michael Munday <mike.munday@ibm.com>
This commit is contained in:
Michael Hudson-Doyle 2017-12-22 14:12:16 +13:00
parent f271d7a0f8
commit 894cde2672

View File

@ -84,6 +84,7 @@ func init() {
"math.Log": ext۰math۰Log,
"math.Min": ext۰math۰Min,
"math.hasSSE4": ext۰math۰hasSSE4,
"math.hasVectorFacility": ext۰math۰hasVectorFacility,
"os.runtime_args": ext۰os۰runtime_args,
"os.runtime_beforeExit": ext۰nop,
"os/signal.init": ext۰nop,
@ -229,6 +230,10 @@ func ext۰math۰hasSSE4(fr *frame, args []value) value {
return false
}
func ext۰math۰hasVectorFacility(fr *frame, args []value) value {
return false
}
func ext۰math۰Ldexp(fr *frame, args []value) value {
return math.Ldexp(args[0].(float64), args[1].(int))
}