tcg-arm: Handle constant arguments to add2/sub2
commit2df3f1ee68269d40f5dcb5e8d9aba0869e150896
authorRichard Henderson <rth@twiddle.net>
Tue, 12 Mar 2013 02:51:56 +0000 (11 19:51 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Apr 2013 00:16:43 +0000 (27 02:16 +0200)
tree156ba5c0c61974d45749c5fe2c0a01ebf965de67
parent5d53b4c93caf16531e65a95a9b5c93228fe48f8b
tcg-arm: Handle constant arguments to add2/sub2

We get to re-use the _rIN and _rIK subroutines to handle the various
combinations of add vs sub.  Fold the << 21 into the opcode enum values
so that we can explicitly add TO_CPSR as desired.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/arm/tcg-target.c