diff options
author | Sean Callanan <scallanan@apple.com> | 2010-05-05 22:47:27 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-05-05 22:47:27 +0000 |
commit | be192dd1e987361ecf51ff385cbf541cb7f779be (patch) | |
tree | 00b29b61573663ea8dcdfc3f66c5da44af3eb45f /tools | |
parent | d47f3c803f4e1e7f84e8fdcd3c9a5120ae5d37ad (diff) | |
download | external_llvm-be192dd1e987361ecf51ff385cbf541cb7f779be.zip external_llvm-be192dd1e987361ecf51ff385cbf541cb7f779be.tar.gz external_llvm-be192dd1e987361ecf51ff385cbf541cb7f779be.tar.bz2 |
Fixed a sign-extension bug in the X86 disassembler
that was causing PC-relative branch targets to be
evaluated incorrectly. Also added support for
checking operand values to the llvm-mc tester.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-mc/Disassembler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/llvm-mc/Disassembler.cpp b/tools/llvm-mc/Disassembler.cpp index 9234a14..e2120c2 100644 --- a/tools/llvm-mc/Disassembler.cpp +++ b/tools/llvm-mc/Disassembler.cpp @@ -342,6 +342,8 @@ int Disassembler::disassembleEnhanced(const std::string &TS, operand, verboseEvaluator, &disassembler); + + outs() << "=" << evaluatedResult; outs() << " "; } |