Skip to content

Commit e80dbfd

Browse files
committed
[LLDB][Reliability] Fix register value unpacking
Fix incorrect direction for bit-shifting. Coverity warning 1355603 (scan.coverity.com) Differential Revision: https://reviews.llvm.org/D130307
1 parent 77c1977 commit e80dbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ uint64_t EmulationStateARM::ReadPseudoRegisterValue(uint32_t reg_num,
9797
uint32_t idx = reg_num - dwarf_d0;
9898
if (idx < 16)
9999
value = (uint64_t)m_vfp_regs.s_regs[idx * 2] |
100-
((uint64_t)m_vfp_regs.s_regs[idx * 2 + 1] >> 32);
100+
((uint64_t)m_vfp_regs.s_regs[idx * 2 + 1] << 32);
101101
else
102102
value = m_vfp_regs.d_regs[idx - 16];
103103
} else

0 commit comments

Comments
 (0)