Skip to content
  • Andreas Klebinger's avatar
    410b43a2
    NCG: Fix 64bit int comparisons on 32bit x86 · 410b43a2
    Andreas Klebinger authored
    We no compare these by doing 64bit subtraction and
    checking the resulting flags.
    
    We used to do this differently but the old approach was
    broken when the high bits compared equal and the comparison
    was one of >= or <=.
    
    The new approach should be both correct and faster.
    
    (cherry picked from commit bb100805)
    (cherry picked from commit fda3e50b)
    410b43a2
    NCG: Fix 64bit int comparisons on 32bit x86
    Andreas Klebinger authored
    We no compare these by doing 64bit subtraction and
    checking the resulting flags.
    
    We used to do this differently but the old approach was
    broken when the high bits compared equal and the comparison
    was one of >= or <=.
    
    The new approach should be both correct and faster.
    
    (cherry picked from commit bb100805)
    (cherry picked from commit fda3e50b)
Loading