diff options
| author | Iskander Sharipov <quasilyte@gmail.com> | 2019-05-01 00:01:39 +0300 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-30 21:21:14 +0000 |
| commit | 720af3c8c4a0223f605b45b80c6a46f46321c760 (patch) | |
| tree | 784d885a44b91d0e15a0e2b51fbe669330e9a421 /test/codegen/arithmetic.go | |
| parent | 08318f5942f361ea6d017ece52c177c4c475cd6c (diff) | |
| download | go-720af3c8c4a0223f605b45b80c6a46f46321c760.tar.xz | |
cmd/asm: reject BSWAPW on amd64
Since BSWAP operation on 16-bit registers is undefined,
forbid the usage of BSWAPW. Users should rely on XCHGB instead.
This behavior is consistent with what GAS does.
Fixes #29167
Change-Id: I3b31e3dd2acfd039f7564a1c17e6068617bcde8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/174312
Run-TryBot: Iskander Sharipov <quasilyte@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/codegen/arithmetic.go')
0 files changed, 0 insertions, 0 deletions
