OSDN Git Service

[X86] Add disassembler test cases for bswap.
authorCraig Topper <craig.topper@intel.com>
Mon, 23 Apr 2018 17:47:33 +0000 (17:47 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 23 Apr 2018 17:47:33 +0000 (17:47 +0000)
commit14d8c6dfc0a49ad5bdc77ff30a94618661cd377f
tree46cb6c0ed6d5e11c1d4935c72ab769cf24fdfdb7
parentaeb3e4fcbba63c2750aa27cfe75c4374a8b23550
[X86] Add disassembler test cases for bswap.

This demonstrates a bug where the encoding for a 16-bit bswap prints a 16-bit register and a 32-bit mnemonic. Intel docs say 16-bit bswap is undefined. We should either claim it as an invalid encoding or we should print a 16-bit mnemonic.

objdump does print the encoding as bswap with a 16-bit register. But it doesn't seem to ever print a suffix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330621 91177308-0d34-0410-b5e6-96231b3b80d8
test/MC/Disassembler/X86/x86-64.txt