[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 31 23:29:00 PST 2004
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.167 -> 1.168
---
Log message:
Add support for select constant expressions to the CBE, fixing SIOD
---
Diffs of the changes: (+9 -0)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.167 llvm/lib/Target/CBackend/Writer.cpp:1.168
--- llvm/lib/Target/CBackend/Writer.cpp:1.167 Fri Mar 12 18:23:42 2004
+++ llvm/lib/Target/CBackend/Writer.cpp Wed Mar 31 23:28:26 2004
@@ -388,6 +388,15 @@
gep_type_end(CPV));
Out << "))";
return;
+ case Instruction::Select:
+ Out << "(";
+ printConstant(CE->getOperand(0));
+ Out << "?";
+ printConstant(CE->getOperand(1));
+ Out << ":";
+ printConstant(CE->getOperand(2));
+ Out << ")";
+ return;
case Instruction::Add:
case Instruction::Sub:
case Instruction::Mul:
More information about the llvm-commits
mailing list