• Nicholas Piggin's avatar
    powerpc/64e: Convert cmpi to cmpwi in head_64.S · f87f253b
    Nicholas Piggin authored
    From 80f23935 ("powerpc: Convert cmp to cmpd in idle enter sequence"):
    
      PowerPC's "cmp" instruction has four operands. Normally people write
      "cmpw" or "cmpd" for the second cmp operand 0 or 1. But, frequently
      people forget, and write "cmp" with just three operands.
    
      With older binutils this is silently accepted as if this was "cmpw",
      while often "cmpd" is wanted. With newer binutils GAS will complain
      about this for 64-bit code. For 32-bit code it still silently assumes
      "cmpw" is what is meant.
    
    In this case, cmpwi is called for, so this is just a build fix for
    new toolchains.
    
    Cc: stable@vger.kernel.org # v3.0+
    Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    f87f253b
head_64.S 24.8 KB