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

Reid Spencer reid at x10sys.com
Sun Oct 22 01:59:32 PDT 2006



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.272.2.3 -> 1.272.2.4
---
Log message:

Implement the FDIV instruction for floating point divide.


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

 Writer.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.272.2.3 llvm/lib/Target/CBackend/Writer.cpp:1.272.2.4
--- llvm/lib/Target/CBackend/Writer.cpp:1.272.2.3	Fri Oct 20 03:19:49 2006
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Oct 22 03:59:00 2006
@@ -588,6 +588,7 @@
     case Instruction::Mul:
     case Instruction::SDiv:
     case Instruction::UDiv:
+    case Instruction::FDiv:
     case Instruction::Rem:
     case Instruction::And:
     case Instruction::Or:
@@ -607,7 +608,8 @@
       case Instruction::Sub: Out << " - "; break;
       case Instruction::Mul: Out << " * "; break;
       case Instruction::UDiv: 
-      case Instruction::SDiv: Out << " / "; break;
+      case Instruction::SDiv: 
+      case Instruction::FDiv: Out << " / "; break;
       case Instruction::Rem: Out << " % "; break;
       case Instruction::And: Out << " & "; break;
       case Instruction::Or:  Out << " | "; break;
@@ -1651,7 +1653,8 @@
     case Instruction::Sub: Out << " - "; break;
     case Instruction::Mul: Out << '*'; break;
     case Instruction::UDiv:
-    case Instruction::SDiv: Out << '/'; break;
+    case Instruction::SDiv: 
+    case Instruction::FDiv: Out << '/'; break;
     case Instruction::Rem: Out << '%'; break;
     case Instruction::And: Out << " & "; break;
     case Instruction::Or: Out << " | "; break;






More information about the llvm-commits mailing list