commit | e86e0f2807fbadee09d9e06f11df69339cbbd94c | [log] [tgz] |
---|---|---|
author | Richard Henderson <rth@twiddle.net> | Mon Mar 04 23:16:24 2013 -0800 |
committer | Aurelien Jarno <aurelien@aurel32.net> | Sat Apr 27 02:16:43 2013 +0200 |
tree | e50dcc322152cd72be193240f118ea8b5506f155 | |
parent | 2df3f1ee68269d40f5dcb5e8d9aba0869e150896 [diff] |
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>