aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-15 04:39:05 +0000
committerChris Lattner <sabre@nondot.org>2009-06-15 04:39:05 +0000
commit2e06dd210102ccee4d9ae08ee01130f09ba01173 (patch)
treecd892c071c6e79f617e515df48d96325445c3108
parent8792232f99b2b2e0e4f84d39d4a53bad37fe6978 (diff)
downloadexternal_llvm-2e06dd210102ccee4d9ae08ee01130f09ba01173.tar.gz
external_llvm-2e06dd210102ccee4d9ae08ee01130f09ba01173.tar.bz2
external_llvm-2e06dd210102ccee4d9ae08ee01130f09ba01173.zip
I got J and K backward, many thanks to Eli for spotting this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73372 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index cb0b30c857..de379e5e5f 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -8468,7 +8468,7 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return;
case 'J':
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
- if ((int8_t)C->getSExtValue() == C->getSExtValue()) {
+ if (C->getZExtValue() <= 63) {
Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType());
break;
}
@@ -8476,7 +8476,7 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return;
case 'K':
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
- if (C->getZExtValue() <= 63) {
+ if ((int8_t)C->getSExtValue() == C->getSExtValue()) {
Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType());
break;
}