OSDN Git Service

MIPS: Emulate the new MIPS R6 B{L,G}T{Z,}{AL,}C instructions
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 26 Nov 2014 13:05:09 +0000 (13:05 +0000)
committerMarkos Chandras <markos.chandras@imgtec.com>
Tue, 17 Feb 2015 15:37:33 +0000 (15:37 +0000)
commitf1b44067c19258b7614e3cd09dfe8d8e12ff5895
treeeb23ac6695fecc5d565e3c21106ead25d9e672ea
parenta8ff66f52d3f17b5ae793955270675c197f73d6c
MIPS: Emulate the new MIPS R6 B{L,G}T{Z,}{AL,}C instructions

MIPS R6 added the following four instructions which share the
BGTZ and BGTZL opcode:

BLTZALC: Compact branch-and-link if GPR rt is < to zero
BGTZALC: Compact branch-and-link if GPR rt is > to zero
BLTZL  : Compact branch if GPR rt is < to zero
BGTZL  : Compact branch if GPR rt is > to zero
BLTC   : Compact branch if GPR rs is less than GPR rt
BLTUC  : Similar to BLTC but unsigned

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/kernel/branch.c
arch/mips/math-emu/cp1emu.c