libgo: use inline assembly in favor of call to _xgetbv()
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 5 Oct 2018 17:51:57 +0000 (17:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 5 Oct 2018 17:51:57 +0000 (17:51 +0000)
commit7fc9c2e52f66a2b8aa101ef918829046f8f517e8
tree2d06104b346a0aad0d48b96c8d6627ba7d88daed
parentd5a9895595c126a5fa8b41c222f330908c3a7e72
libgo: use inline assembly in favor of call to _xgetbv()

    Use inline assembly in the implementation of internal_cpu.xgetbv as
    opposed to a call to the intrinsic _xgetbv(), since non-gcc compilers
    (e.g. clang) may or may not have support for it.

    Reviewed-on: https://go-review.googlesource.com/c/140137

From-SVN: r264882
gcc/go/gofrontend/MERGE
libgo/go/internal/cpu/cpu_gccgo.c