aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16ISelLowering.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-03 13:36:44 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-03 13:36:44 +0000
commit0c878bb2595a32777febe2cfc8bf88a1f6c67b0b (patch)
tree2fce4d4f6b79fb9db43dca56a744d3d808e65d4d /lib/Target/PIC16/PIC16ISelLowering.cpp
parent12ea2a81f274c708fb90fb7fa0198efbe014d50b (diff)
downloadexternal_llvm-0c878bb2595a32777febe2cfc8bf88a1f6c67b0b.zip
external_llvm-0c878bb2595a32777febe2cfc8bf88a1f6c67b0b.tar.gz
external_llvm-0c878bb2595a32777febe2cfc8bf88a1f6c67b0b.tar.bz2
Fixed a bug in which signed comparisons were being used instead of unsigned comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16ISelLowering.cpp')
-rw-r--r--lib/Target/PIC16/PIC16ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PIC16/PIC16ISelLowering.cpp b/lib/Target/PIC16/PIC16ISelLowering.cpp
index 92fdcb2..ffdb90a 100644
--- a/lib/Target/PIC16/PIC16ISelLowering.cpp
+++ b/lib/Target/PIC16/PIC16ISelLowering.cpp
@@ -1557,8 +1557,8 @@ static PIC16CC::CondCodes IntCCToPIC16CC(ISD::CondCode CC) {
case ISD::SETLT: return PIC16CC::LT;
case ISD::SETLE: return PIC16CC::LE;
case ISD::SETULT: return PIC16CC::ULT;
- case ISD::SETULE: return PIC16CC::LE;
- case ISD::SETUGE: return PIC16CC::GE;
+ case ISD::SETULE: return PIC16CC::ULE;
+ case ISD::SETUGE: return PIC16CC::UGE;
case ISD::SETUGT: return PIC16CC::UGT;
}
}