From 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 21:39:35 +0000 Subject: 20060303 --- utils/qa/branch | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 utils/qa/branch (limited to 'utils/qa/branch') diff --git a/utils/qa/branch b/utils/qa/branch new file mode 100644 index 00000000..8092a2c5 --- /dev/null +++ b/utils/qa/branch @@ -0,0 +1,37 @@ +BO operand encodings + +0+y 0000y decrement CTR, then branch if CTR != 0 && condition is false +2+y 0001y decrement CTR, then branch if CTR == 0 && condition is false +4+y 0010y branch if condition is false +8+y 0100y decrement CTR, then branch if CTR != 0 && condition is true +10+y 0101y decrement CTR, then branch if CTR == 0 && condition is true +12+y 0110y branch if condition is true +16+y 1000y decrement CTR, then branch if CTR != 0 +18+y 1001y decrement CTR, then branch if CTR == 0 +20 10100 branch always + +y=0: + BCx with negative displacement: branch probably taken + all other cases: branch not taken + +y=1: + reverse prediction + +predict to be taken if + ((BO[0] & BO[2]) | sign(displacement)) xor y + +CR field bit: + +lt 0 +gt 1 +eq 2 +so 3 +un 3 (after fp comparison) + +CR fields: + +cr0 0 +cr1 4 +cr2 8 +... +cr7 28 -- cgit v1.2.3