From 894cde2672a2fb65ca40a8fbdce343f755975005 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 22 Dec 2017 14:12:16 +1300 Subject: [PATCH] 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 Run-TryBot: Michael Munday --- go/ssa/interp/external.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/ssa/interp/external.go b/go/ssa/interp/external.go index 66727d8e7b..e16832bf91 100644 --- a/go/ssa/interp/external.go +++ b/go/ssa/interp/external.go @@ -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)) }