ads2gas: Allow converting code to thumb mode
authorMartin Storsjo <martin@martin.st>
Sat, 11 May 2013 23:15:45 +0000 (02:15 +0300)
committerMartin Storsjo <martin@martin.st>
Mon, 13 May 2013 09:49:36 +0000 (12:49 +0300)
commit644587cfdda9f14e2326a9d189bfc6e6317752d3
tree2d981123f20ee003be93ff8779ad9b9e12161d7d
parentb4e390981c1573f90c2ee23378eeeaf610412ede
ads2gas: Allow converting code to thumb mode

Currently this only supports thumb2.

This involves rewriting certain instructions that can't be expressed
in thumb2 into equivalent instruction sequences. The regexps for
rewriting are currently written pretty narrowly, only covering the
exact cases currently encountered in the code base.

No IT instructions are added (since that would require more logic than
plain regexps), so using the thumb mode requires enabling
-mimplicit-it=always/thumb.

Change-Id: I1f676ad1d351381f02bcf00105102aa8dd7ae364
build/make/ads2gas.pl