[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 29 09:39:52 PDT 2005



Changes in directory llvm/utils/TableGen:

DAGISelEmitter.cpp updated: 1.70 -> 1.71
---
Log message:

Make negative immediates in patterns work correctly, silence some warnings
building the itanium backend.


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

 DAGISelEmitter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.70 llvm/utils/TableGen/DAGISelEmitter.cpp:1.71
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.70	Fri Oct 28 17:49:02 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp	Sat Oct 29 11:39:40 2005
@@ -1592,7 +1592,7 @@
       } else if (IntInit *II = dynamic_cast<IntInit*>(Child->getLeafValue())) {
         OS << "      if (!isa<ConstantSDNode>(" << RootName << i << ") ||\n"
            << "          cast<ConstantSDNode>(" << RootName << i
-           << ")->getValue() != " << II->getValue() << ")\n"
+           << ")->getSignExtended() != " << II->getValue() << ")\n"
            << "        goto P" << PatternNo << "Fail;\n";
       } else {
         Child->dump();






More information about the llvm-commits mailing list