OSDN Git Service

MIPS: Emulate the new MIPS R6 B{L,G}Ε{Z,}{AL,}C instructions
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 26 Nov 2014 12:57:54 +0000 (12:57 +0000)
committerMarkos Chandras <markos.chandras@imgtec.com>
Tue, 17 Feb 2015 15:37:33 +0000 (15:37 +0000)
commita8ff66f52d3f17b5ae793955270675c197f73d6c
treeae86a8dfde65eecdcd9bd7591034ef5f65a65997
parentc8a34581ec09a5ee11dd833d6c5cf41fdbef706f
MIPS: Emulate the new MIPS R6 B{L,G}Ε{Z,}{AL,}C instructions

MIPS R6 added the following four instructions which share the
BLEZ and BLEZL opcodes:

BLEZALC: Compact branch-and-link if GPR rt is <= to zero
BGEZALC: Compact branch-and-link if GPR rt is >= to zero
BLEZC  : Compact branch if GPR rt is <= to zero
BGEZC  : Compact branch if GPR rt is >= to zero
BGEC   : Compact branch if GPR rs is less than or equal to GPR rt
BGEUC  : Similar to BGEC but unsigned.

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