commit | d0739c13ca3686df1f8d0fae7c6c5caaed058503 | [log] [tgz] |
---|---|---|
author | Than McIntosh <thanm@google.com> | Fri Oct 05 12:22:55 2018 -0400 |
committer | Ian Lance Taylor <iant@golang.org> | Fri Oct 05 17:51:21 2018 +0000 |
tree | 6176c3406f7f49a5ff8add9ad1e942db9029640b | |
parent | 9f4cf23e716bcf65e071260afa032a64acd3fdde [diff] |
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. Change-Id: If16289688529fdbcd8ba9d7339092521fe1abeda Reviewed-on: https://go-review.googlesource.com/c/140137 Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>