compiler: intrinsify some math/bits functions
authorCherry Zhang <cherryyz@google.com>
Fri, 21 Jun 2019 22:42:18 +0000 (22:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jun 2019 22:42:18 +0000 (22:42 +0000)
commitd54cf3a449fad57fcad8d2eafb8bb3d49585ea65
treebf4410cb0c973ef258021efcf54a16d92bc7f1af
parentf4e7200b1df3dde7d2d9cec8861c6567356db40f
compiler: intrinsify some math/bits functions

    Let the Go frontend recognize some math/bits functions and turn
    them into intrinsics.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/183266

* go-gcc.cc (Gcc_backend::Gcc_backend): Define math/bits
builtins.

From-SVN: r272579
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.cc
gcc/go/gofrontend/runtime.def