# New Ticket Created by  Klaas-Jan Stol 
# Please include the string:  [perl #48513]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=48513 >


It would be helpful if PCT knew how to handle integer registers if needed.

A typical example is for using the "isgt" or any other isXX op:

a = 1
b = 2
$I0 = isgt a, b   # returns 0, as 1 is not greater than 2


In PCT this is helpful, if you want to translate a HLL statement like this:

if a > b then {some thing you want to do if a > b }

This can then be compiled to:

$I0 = isgt a, b
if $I0 goto _then123

  { possibly else block }
  goto _endif
_then123:
  { something you want to do if a > b }
_endif



Note that in a later phase, these instructions can be optimized to:

gt a, b, _then123

Reply via email to