Skip to content
  • Martin Storsjö's avatar
    arm: Don't use vcmp.f64 for testing for an all-zeros register · 834e1b11
    Martin Storsjö authored and Henrik Gramner's avatar Henrik Gramner committed
    On iOS, vcmp.f64 can behave as if the register was zero, if the
    register (interpreted as a f64), was a denormal number.
    
    The vcmp.f64 (and other VFP instructions) will trap to the kernel
    (which is supposed to implement the FP operation, which it apparently
    doesn't do properly on iOS) if the value is a denormal. If this happens,
    the whole comparison ends up way more costly.
    834e1b11