diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-02-17 10:03:43 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-02-17 10:03:43 +0000 |
commit | 3457506fb9e5256fcc3c51ea3fd5bbd0221dead0 (patch) | |
tree | 7e4fb0a5277fb95d070001008692cc1edb90ad4b /test/MC | |
parent | e139a1e0e42045990990b0ef4f110c05fcfeae78 (diff) | |
download | llvm-3457506fb9e5256fcc3c51ea3fd5bbd0221dead0.tar.gz llvm-3457506fb9e5256fcc3c51ea3fd5bbd0221dead0.tar.bz2 llvm-3457506fb9e5256fcc3c51ea3fd5bbd0221dead0.tar.xz |
Fix diassembler handling of rex.b when mod=00/01/10 and bbb=101. Mod=00 should ignore the base register entirely. Mod=01/10 should treat this as R13 plus displacment. Fixes PR18860.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Disassembler/X86/x86-64.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/Disassembler/X86/x86-64.txt b/test/MC/Disassembler/X86/x86-64.txt index 8c6bc0e296..6f072df7e4 100644 --- a/test/MC/Disassembler/X86/x86-64.txt +++ b/test/MC/Disassembler/X86/x86-64.txt @@ -241,3 +241,27 @@ # CHECK: pextrw $3, %xmm3, (%rax) 0x66 0x0f 0x3a 0x15 0x18 0x03 + +# CHECK: $0, 305419896(,%r8) +0x43 0x80 0x04 0x05 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(%r13,%r8) +0x43 0x80 0x84 0x05 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(,%r8) +0x42 0x80 0x04 0x05 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(%rbp,%r8) +0x42 0x80 0x84 0x05 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(,%r12) +0x42 0x80 0x04 0x25 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(%rbp,%r12) +0x42 0x80 0x84 0x25 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896 +0x80 0x04 0x25 0x78 0x56 0x34 0x12 0x00 + +# CHECK: $0, 305419896(%rbp) +0x80 0x84 0x25 0x78 0x56 0x34 0x12 0x00 |