mirror of
https://github.com/golang/go.git
synced 2025-05-06 08:03:03 +00: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:
parent
f271d7a0f8
commit
894cde2672
@ -84,6 +84,7 @@ func init() {
|
|||||||
"math.Log": ext۰math۰Log,
|
"math.Log": ext۰math۰Log,
|
||||||
"math.Min": ext۰math۰Min,
|
"math.Min": ext۰math۰Min,
|
||||||
"math.hasSSE4": ext۰math۰hasSSE4,
|
"math.hasSSE4": ext۰math۰hasSSE4,
|
||||||
|
"math.hasVectorFacility": ext۰math۰hasVectorFacility,
|
||||||
"os.runtime_args": ext۰os۰runtime_args,
|
"os.runtime_args": ext۰os۰runtime_args,
|
||||||
"os.runtime_beforeExit": ext۰nop,
|
"os.runtime_beforeExit": ext۰nop,
|
||||||
"os/signal.init": ext۰nop,
|
"os/signal.init": ext۰nop,
|
||||||
@ -229,6 +230,10 @@ func ext۰math۰hasSSE4(fr *frame, args []value) value {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ext۰math۰hasVectorFacility(fr *frame, args []value) value {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
func ext۰math۰Ldexp(fr *frame, args []value) value {
|
func ext۰math۰Ldexp(fr *frame, args []value) value {
|
||||||
return math.Ldexp(args[0].(float64), args[1].(int))
|
return math.Ldexp(args[0].(float64), args[1].(int))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user