[llvm-commits] [llvm] r73372 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Chris Lattner sabre at nondot.org
Sun Jun 14 21:39:05 PDT 2009


Author: lattner
Date: Sun Jun 14 23:39:05 2009
New Revision: 73372

URL: http://llvm.org/viewvc/llvm-project?rev=73372&view=rev
Log:
I got J and K backward, many thanks to Eli for spotting this!

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=73372&r1=73371&r2=73372&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Jun 14 23:39:05 2009
@@ -8468,7 +8468,7 @@
     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 @@
     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;
       }





More information about the llvm-commits mailing list