libgo: use inline assembly in favor of call to _xgetbv()
commit64ee3052c28b638490a07f28b1c88d2ffa8fb46f
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Oct 2018 17:51:57 +0000 (5 17:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Oct 2018 17:51:57 +0000 (5 17:51 +0000)
tree2d06104b346a0aad0d48b96c8d6627ba7d88daed
parent5c4df7dce4eded3d47ce5a67c68cade6da4b7b57
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264882 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/internal/cpu/cpu_gccgo.c