Fix condition detection in EmulateInstructionARM
authorTamas Berghammer <tberghammer@google.com>
Fri, 24 Apr 2015 12:13:44 +0000 (12:13 +0000)
committerTamas Berghammer <tberghammer@google.com>
Fri, 24 Apr 2015 12:13:44 +0000 (12:13 +0000)
commit224dfbf3ae8416a5b578602bf4253782446d3627
tree2e4d32bceab9e6141287180204ed958d54dfb580
parent0da3ee1ef3bf3b2882400f1e35cb678cbdce7b4d
Fix condition detection in EmulateInstructionARM

The condition detection code is calculating the result of the condition
based on the first 3 bit of the condition and then negate it if the LSB
of the condition is set. It works for the normal conditions but 0b1110
and 0b1111 are special as both of them should evaluate to true
independently the value of CPSR. This CL removes the negating logic from
those cases.

Differential revision: http://reviews.llvm.org/D9219

llvm-svn: 235715
lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp