aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-31 09:53:31 +0000
committerChris Lattner <sabre@nondot.org>2004-07-31 09:53:31 +0000
commit167cf33e1dba52b22af1e269ef0af2c33ac1dbf4 (patch)
treec6e39acefebe0b6252da34320cf39b833b863b7d /lib
parent6103c1703c99eaec586d442a08868bf7e2555c56 (diff)
Add breaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index 85f51e8175..f41d866114 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -50,18 +50,18 @@ X86InstrInfo::reverseBranchCondition(MachineBasicBlock::iterator MI) const {
assert(isBranch(Opcode) && "MachineInstr must be a branch");
unsigned ROpcode;
switch (Opcode) {
- case X86::JB: ROpcode = X86::JAE;
- case X86::JAE: ROpcode = X86::JB;
- case X86::JE: ROpcode = X86::JNE;
- case X86::JNE: ROpcode = X86::JE;
- case X86::JBE: ROpcode = X86::JA;
- case X86::JA: ROpcode = X86::JBE;
- case X86::JS: ROpcode = X86::JNS;
- case X86::JNS: ROpcode = X86::JS;
- case X86::JL: ROpcode = X86::JGE;
- case X86::JGE: ROpcode = X86::JL;
- case X86::JLE: ROpcode = X86::JG;
- case X86::JG: ROpcode = X86::JLE;
+ case X86::JB: ROpcode = X86::JAE; break;
+ case X86::JAE: ROpcode = X86::JB; break;
+ case X86::JE: ROpcode = X86::JNE; break;
+ case X86::JNE: ROpcode = X86::JE; break;
+ case X86::JBE: ROpcode = X86::JA; break;
+ case X86::JA: ROpcode = X86::JBE; break;
+ case X86::JS: ROpcode = X86::JNS; break;
+ case X86::JNS: ROpcode = X86::JS; break;
+ case X86::JL: ROpcode = X86::JGE; break;
+ case X86::JGE: ROpcode = X86::JL; break;
+ case X86::JLE: ROpcode = X86::JG; break;
+ case X86::JG: ROpcode = X86::JLE; break;
default:
assert(0 && "Cannot reverse unconditional branches!");
}