[llvm-commits] [PATCH] Correctly fail decoding of LDRD with odd Rt field

Eric Christopher echristo at apple.com
Mon Aug 15 11:47:30 PDT 2011


On Aug 15, 2011, at 7:50 AM, James Molloy wrote:

> Hi,
>  
> The attached patch causes decoding to fail if the Rt field of an LDRD/STRD is odd (Rt&0x1 != 0), as specified in A.6.68. Testcase added.
>  
> I wanted to add an assert to the encoder too, but couldn't see an obvious way to do this as the Rt field is decoded by the generic "getMachineOpValue()" function direct from tablegen.
>  

LGTM. Owen? Any objections?

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110815/f2451fa4/attachment.html>


More information about the llvm-commits mailing list