• Paul Mackerras's avatar
    [PATCH] PPC64 Replace cmp instructions with cmpw/cmpd · f3d21632
    Paul Mackerras authored
    There were a few places in assembly code in the ppc64 part of the
    kernel where we were using the old forms of the compare instruction
    (cmp, cmpi, cmpl, cmpli) which don't specify the operand size (word or
    doubleword).  These have been accepted for a long time for backward
    compatibility with the old POWER architecture (and defaulted to a
    32-bit comparison) but are now being rejected by the latest versions
    of binutils.  Some of them were actual bugs in that they were on
    things which were actually 64-bit values such as pointers (not that
    any of them actually caused a problem in practice).
    
    This patch replaces cmp{,l}{,i} with cmp{,l}[wd]{,i} as appropriate.
    The original patch was from Segher Boessenkool, slightly modified by
    me.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    f3d21632
hash_low.S 7.07 KB