[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Chris Lattner sabre at nondot.org
Fri Feb 23 18:09:45 PST 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

TargetLowering.cpp updated: 1.93 -> 1.94
---
Log message:

Fix CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll and PR1219: http://llvm.org/PR1219 


---
Diffs of the changes:  (+2 -2)

 TargetLowering.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.93 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.94
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.93	Thu Feb 22 12:04:49 2007
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp	Fri Feb 23 20:09:29 2007
@@ -1459,11 +1459,11 @@
           case ISD::SETGT:
           case ISD::SETGE:
             // True if the sign bit of C1 is set.
-            return DAG.getConstant((C1 & (1ULL << VSize)) != 0, VT);
+            return DAG.getConstant((C1 & (1ULL << (VSize-1))) != 0, VT);
           case ISD::SETLT:
           case ISD::SETLE:
             // True if the sign bit of C1 isn't set.
-            return DAG.getConstant((C1 & (1ULL << VSize)) == 0, VT);
+            return DAG.getConstant((C1 & (1ULL << (VSize-1))) == 0, VT);
           default:
             break;
           }






More information about the llvm-commits mailing list