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

@ -31,7 +31,7 @@ module Risc
end
def test_smaller
run_all "4 < 5"
assert_equal 16 , get_return.value
assert_equal Parfait::TrueClass , get_return.class
end
end
end