[llvm-commits] Fix for disassembling unpredictable arithmetic/adc/sbc instructions fon ARM

Silviu Baranga silbar01 at arm.com
Thu Apr 5 09:25:28 PDT 2012


Committed in r154100 (AAI.diff) and r154101(adc.diff).

 

From: Owen Anderson [mailto:resistor at mac.com] 
Sent: 03 April 2012 21:53
To: Silviu Baranga
Cc: llvm-commits at cs.uiuc.edu
Subject: Re: [llvm-commits] Fix for disassembling unpredictable
arithmetic/adc/sbc instructions fon ARM

 

LGTM.

 

--Owen

 

On Mar 28, 2012, at 3:19 AM, Silviu Baranga <silbar01 at arm.com> wrote:





Hi,

 

Here are two patches that make the disassembler

emit warnings when decoding some unpredictable

instructions on ARM. Previously the disassembler

would emit errors or accept these instructions as

being predictable.

 

This is done by changing some register classes

to not allow the pc operand, and by specifying

the unpredictable bit fields.

 

AAI.diff : The patch affects arithmetic instructions,

   modifies and renames the 'invalid-LDRT-arm.txt'

   test  to 'unpredictable-SHADD16-arm.txt' because

   it actually decodes an unpredictable shadd16

   instruction.

adc.diff:  This patch affects the adc/sbc instructions.

  It also adds a regression test.

 

Please review.

 

Thanks,

Silviu

<AAI.diff><adc.diff>_______________________________________________
llvm-commits mailing list
 <mailto:llvm-commits at cs.uiuc.edu> llvm-commits at cs.uiuc.edu
 <http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits>
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120405/9853cf59/attachment.html>


More information about the llvm-commits mailing list