Skip to content
  • Michal Terepeta's avatar
    Support MO_U_QuotRem2 in LLVM backend · 92f5385d
    Michal Terepeta authored and Ben Gamari's avatar Ben Gamari committed
    This adds support for MO_U_QuotRem2 in LLVM backend.  Similarly to
    MO_U_Mul2 we use the standard LLVM instructions (in this case 'udiv'
    and 'urem') but do the computation on double the word width (e.g., for
    64-bit we will do them on 128 registers).
    
    Test Plan: validate
    
    Reviewers: rwbarton, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1100
    
    GHC Trac Issues: #9430
    92f5385d