[llvm-bugs] [Bug 41660] New: ARMDisassembler.cpp - DecodeGPRPairRegisterClass - always false condition
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 29 14:57:14 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41660
Bug ID: 41660
Summary: ARMDisassembler.cpp - DecodeGPRPairRegisterClass -
always false condition
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: ARM
Assignee: unassignedbugs at nondot.org
Reporter: llvm-dev at redking.me.uk
CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
Ties.Stuij at arm.com
Blocks: 41655
Reported in https://www.viva64.com/en/b/0629/
static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, unsigned RegNo,
uint64_t Address, const void *Decoder) {
DecodeStatus S = MCDisassembler::Success;
if (RegNo > 13)
return MCDisassembler::Fail;
if ((RegNo & 1) || RegNo == 0xe)
S = MCDisassembler::SoftFail;
....
}
(RegNo == 0xe) can never be true as we've already returned if (RegNo > 13).
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=41655
[Bug 41655] Finding Bugs in LLVM 8 with PVS-Studio
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190429/4a069784/attachment.html>
More information about the llvm-bugs
mailing list