aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/X86
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-02-23 18:18:17 +0000
committerKevin Enderby <enderby@apple.com>2012-02-23 18:18:17 +0000
commitb80d571ea85db5d52fafed0523cf59e693502198 (patch)
tree1561d5c37bf35aea02289e2922600e27b21daf55 /test/MC/X86
parent18547223275755733fcee9e3c30025e7238f8607 (diff)
downloadexternal_llvm-b80d571ea85db5d52fafed0523cf59e693502198.zip
external_llvm-b80d571ea85db5d52fafed0523cf59e693502198.tar.gz
external_llvm-b80d571ea85db5d52fafed0523cf59e693502198.tar.bz2
Updated the llvm-mc disassembler C API to support for the X86 target.
rdar://10873652 As part of this I updated the llvm-mc disassembler C API to always call the SymbolLookUp call back even if there is no getOpInfo call back. If there is a getOpInfo call back that is tried first and then if that gets no information then the SymbolLookUp is called. I also made the code more robust by memset(3)'ing to zero the LLVMOpInfo1 struct before then setting SymbolicOp.Value before for the call to getOpInfo. And also don't use any values from the LLVMOpInfo1 struct if getOpInfo returns 0. And also don't use any of the ReferenceType or ReferenceName values from SymbolLookUp if it returns NULL. rdar://10873563 and rdar://10873683 For the X86 target also fixed bugs so the annotations get printed. Also fixed a few places in the ARM target that was not producing symbolic operands for some instructions. rdar://10878166 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r--test/MC/X86/x86-32.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/MC/X86/x86-32.s b/test/MC/X86/x86-32.s
index 162ba92..8e11aec 100644
--- a/test/MC/X86/x86-32.s
+++ b/test/MC/X86/x86-32.s
@@ -97,9 +97,9 @@
sal $1, %eax
// moffset forms of moves, rdar://7947184
-movb 0, %al // CHECK: movb 0, %al # encoding: [0xa0,A,A,A,A]
-movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0xa1,A,A,A,A]
-movl 0, %eax // CHECK: movl 0, %eax # encoding: [0xa1,A,A,A,A]
+movb 0, %al // CHECK: movb 0, %al # encoding: [0xa0,0x00,0x00,0x00,0x00]
+movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0xa1,0x00,0x00,0x00,0x00]
+movl 0, %eax // CHECK: movl 0, %eax # encoding: [0xa1,0x00,0x00,0x00,0x00]
// rdar://7973775
into