work to move large constants

This commit is contained in:
Torsten Ruger
2014-09-16 11:39:08 +03:00
parent c92b165a3f
commit 16b3cacc8d
3 changed files with 39 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ module Arm
end
def calculate_u8_with_rr(arg)
parts = arg.value.to_s(2).rjust(32,'0').scan(/^(0*)(.+?)0*$/).flatten
parts = arg.integer.to_s(2).rjust(32,'0').scan(/^(0*)(.+?)0*$/).flatten
pre_zeros = parts[0].length
imm_len = parts[1].length
if ((pre_zeros+imm_len) % 2 == 1)