[llvm-commits] [PATCH] fix #13035 (Thumb LDRD/STRD with negative #0 offset is decoded as a positive #0 offset)
Renato Golin
rengolin at systemcall.org
Wed Aug 1 09:09:03 PDT 2012
On 1 August 2012 16:12, Jiangning Liu <jiangning.liu at arm.com> wrote:
> Hi,
>
> The patch is fix http://llvm.org/bugs/show_bug.cgi?id=13035, and the
> solution is to use INT32_MIN to describe #-0.
Hi Jiangning,
In DecodeT2Imm8S4():
+ if (Val == 0)
+ Inst.addOperand(MCOperand::CreateImm(INT32_MIN));
If 0 is the representation of #-0, what is the representation of #0?
Otherwise, looks good.
--
cheers,
--renato
http://systemcall.org/
More information about the llvm-commits
mailing list