Skip to content
  • Jakob Stoklund Olesen's avatar
    Add TEST8ri_NOREX pseudo to constrain sub_8bit_hi copies. · 729abd36
    Jakob Stoklund Olesen authored
    In 64-bit mode, sub_8bit_hi sub-registers can only be used by NOREX
    instructions. The COPY created from the EXTRACT_SUBREG DAG node cannot
    target all GR8 registers, only those in GR8_NOREX.
    
    TO enforce this, we ensure that all instructions using the
    EXTRACT_SUBREG are GR8_NOREX constrained.
    
    This fixes PR11088.
    
    llvm-svn: 141499
    729abd36
Loading