summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-29 04:00:09 +0000
committerChris Lattner <sabre@nondot.org>2004-12-29 04:00:09 +0000
commit93feeb18f16a8c89dcc4b50a87147da6700716b1 (patch)
tree8fbb962d0c20cfc62f4104a15a7e542002d1076b /llvm/lib/Target/CBackend/Writer.cpp
parent5c87df3b7b03fb33b9022a76a9faa8f2be7565fb (diff)
downloadbcm5719-llvm-93feeb18f16a8c89dcc4b50a87147da6700716b1.tar.gz
bcm5719-llvm-93feeb18f16a8c89dcc4b50a87147da6700716b1.zip
Fix PR490
Fix testcase CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll llvm-svn: 19176
Diffstat (limited to 'llvm/lib/Target/CBackend/Writer.cpp')
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index fdbf8bc1293..9ff6f5c94b2 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/lib/Target/CBackend/Writer.cpp
@@ -493,6 +493,9 @@ void CWriter::printConstant(Constant *CPV) {
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 @@ void CWriter::printConstant(Constant *CPV) {
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;
OpenPOWER on IntegriCloud