[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
This commit is contained in:
Craig Topper 2018-04-23 17:47:33 +00:00
parent aeb3e4fcbb
commit 14d8c6dfc0

View File

@ -546,3 +546,12 @@
# CHECK: tpause %r15
0x66 0x41 0x0f 0xae 0xf7
# CHECK: bswapl %bx
0x66 0x0f 0xcb
# CHECK: bswapl %ebx
0x0f 0xcb
# CHECK: bswapq %rbx
0x48 0x0f 0xcb