Skip to content
  • John Ky's avatar
    Add new mbmi and mbmi2 compiler flags · f8557696
    John Ky authored and Ben Gamari's avatar Ben Gamari committed
    This adds support for the bit deposit and extraction operations provided
    by the BMI and BMI2 instruction set extensions on modern amd64 machines.
    
    Implement x86 code generator for pdep and pext.  Properly initialise
    bmiVersion field.
    
    pdep and pext test cases
    
    Fix pattern match for pdep and pext instructions
    
    Fix build of pdep and pext code for 32-bit architectures
    
    Test Plan: Validate
    
    Reviewers: austin, simonmar, bgamari, angerman
    
    Reviewed By: bgamari
    
    Subscribers: trommler, carter, angerman, thomie, rwbarton, newhoggy
    
    GHC Trac Issues: #14206
    
    Differential Revision: https://phabricator.haskell.org/D4236
    f8557696