diff options
author | Richard Henderson <rth@twiddle.net> | 2012-10-02 11:32:22 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-17 17:31:53 +0200 |
commit | 1e484e61e2d9387c18a40e9e239b304003f5d183 (patch) | |
tree | 6ed74bf3077ef072f778fbccf19f327e1334ce0e /tcg | |
parent | 24c9ae4eba5eec59256d0d0ace4d868a19f87528 (diff) | |
download | qemu-1e484e61e2d9387c18a40e9e239b304003f5d183.zip qemu-1e484e61e2d9387c18a40e9e239b304003f5d183.tar.gz qemu-1e484e61e2d9387c18a40e9e239b304003f5d183.tar.bz2 |
tcg: Canonicalize add2 operand ordering
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/optimize.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c index ff4ddb2..8d74186 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -478,6 +478,11 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr, if (swap_commutative(args[0], &args[4], &args[3])) { args[5] = tcg_invert_cond(args[5]); } + break; + case INDEX_op_add2_i32: + swap_commutative(args[0], &args[2], &args[4]); + swap_commutative(args[1], &args[3], &args[5]); + break; default: break; } |