Skip to content
  • Kevin Enderby's avatar
    Fix llvm-mc handing of x86 instructions that take 8-bit unsigned immediates. · 5ef6c453
    Kevin Enderby authored
    llvm-mc gives an "invalid operand" error for instructions that take an unsigned
    immediate which have the high bit set such as:
        pblendw $0xc5, %xmm2, %xmm1
    llvm-mc treats all x86 immediates as signed values and range checks them.
    A small number of x86 instructions use the imm8 field as a set of bits.
    This change only changes those instructions and where the high bit is not
    ignored.  The others remain unchanged.
    
    llvm-svn: 136287
    5ef6c453
Loading