aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-26 23:42:05 +0000
committerChris Lattner <sabre@nondot.org>2005-08-26 23:42:05 +0000
commite3f1c9773420bf6e51b39906609329d21cc9269c (patch)
tree38caf15dd7ca4348f806ee2f1dbb941e5e6d4fd9
parentf48e83ded0a27788a4790e73c2c4ad6bed8a7c71 (diff)
The condition register being branched on may not be cr0, as such, print it.
This fixes: UnitTests/2005-07-17-INT-To-FP.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23112 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index 4f88cd35c5..026d0ed0b2 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -88,17 +88,17 @@ let isBranch = 1, isTerminator = 1 in {
// FIXME: 4*CR# needs to be added to the BI field!
// This will only work for CR0 as it stands now
def BLT : BForm<16, 0, 0, 12, 0, (ops CRRC:$crS, target:$block),
- "blt $block">;
+ "blt $crS, $block">;
def BLE : BForm<16, 0, 0, 4, 1, (ops CRRC:$crS, target:$block),
- "ble $block">;
+ "ble $crS, $block">;
def BEQ : BForm<16, 0, 0, 12, 2, (ops CRRC:$crS, target:$block),
- "beq $block">;
+ "beq $crS, $block">;
def BGE : BForm<16, 0, 0, 4, 0, (ops CRRC:$crS, target:$block),
- "bge $block">;
+ "bge $crS, $block">;
def BGT : BForm<16, 0, 0, 12, 1, (ops CRRC:$crS, target:$block),
- "bgt $block">;
+ "bgt $crS, $block">;
def BNE : BForm<16, 0, 0, 4, 2, (ops CRRC:$crS, target:$block),
- "bne $block">;
+ "bne $crS, $block">;
}
let isCall = 1,