implement smaller than comparison

which is NOT an operator in the risc sense
rather a minus and a check for sign
(which _could be more efficient in arm, with conditional execution)
This commit is contained in:
Torsten Ruger
2018-04-19 22:41:40 +03:00
parent 9e21719aeb
commit be3d125b82
4 changed files with 22 additions and 3 deletions

View File

@ -114,7 +114,7 @@ module Risc
add_slot_to_reg(source , int_arg , at + 1, int_arg ) #1 for type
return int_arg
end
# assumed Integer in given register is replaced by the fixnum that it is holding
def reduce_int( source , register )
add_slot_to_reg( source + "int -> fix" , register , Parfait::Integer.integer_index , register)