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

@ -184,7 +184,7 @@ module Risc
Risc.operators.each do |op|
obj.instance_type.add_method Builtin::Integer.operator_method(op)
end
[:putint, :div4, :div10].each do |f| #div4 is just a forward declaration
[:putint, :div4, :div10 , :<].each do |f| #div4 is just a forward declaration
obj.instance_type.add_method Builtin::Integer.send(f , nil)
end
end