[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 28 20:00:21 PST 2004



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.216 -> 1.217
---
Log message:

Fix PR490: http://llvm.cs.uiuc.edu/PR490 
Fix testcase CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.216 llvm/lib/Target/CBackend/Writer.cpp:1.217
--- llvm/lib/Target/CBackend/Writer.cpp:1.216	Wed Dec 15 17:13:15 2004
+++ llvm/lib/Target/CBackend/Writer.cpp	Tue Dec 28 22:00:09 2004
@@ -493,6 +493,9 @@
     case Instruction::Mul:
     case Instruction::Div:
     case Instruction::Rem:
+    case Instruction::And:
+    case Instruction::Or:
+    case Instruction::Xor:
     case Instruction::SetEQ:
     case Instruction::SetNE:
     case Instruction::SetLT:
@@ -509,6 +512,9 @@
       case Instruction::Mul: Out << " * "; break;
       case Instruction::Div: Out << " / "; break;
       case Instruction::Rem: Out << " % "; break;
+      case Instruction::And: Out << " & "; break;
+      case Instruction::Or:  Out << " | "; break;
+      case Instruction::Xor: Out << " ^ "; break;
       case Instruction::SetEQ: Out << " == "; break;
       case Instruction::SetNE: Out << " != "; break;
       case Instruction::SetLT: Out << " < "; break;






More information about the llvm-commits mailing list