]> git.proxmox.com Git - qemu.git/commit
tcg-arm: Improve constant generation
authorRichard Henderson <rth@twiddle.net>
Tue, 5 Mar 2013 07:16:24 +0000 (23:16 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Apr 2013 00:16:43 +0000 (02:16 +0200)
commite86e0f2807fbadee09d9e06f11df69339cbbd94c
treee50dcc322152cd72be193240f118ea8b5506f155
parent2df3f1ee68269d40f5dcb5e8d9aba0869e150896
tcg-arm: Improve constant generation

Try fully rotated arguments to mov and mvn before trying movt
or full decomposition.  Begin decomposition with mvn when it
looks like it'll help.  Examples include

-:        mov   r9, #0x00000fa0
-:        orr   r9, r9, #0x000ee000
-:        orr   r9, r9, #0x0ff00000
-:        orr   r9, r9, #0xf0000000
+:        mvn   r9, #0x0000005f
+:        eor   r9, r9, #0x00011000

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