From be192dd1e987361ecf51ff385cbf541cb7f779be Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 5 May 2010 22:47:27 +0000 Subject: 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 --- tools/llvm-mc/Disassembler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') 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() << " "; } -- cgit v1.1