OSDN Git Service

Code to handle FP_EXTEND is dead now. X86 doesn't support any data types to
authorChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 20:05:56 +0000 (20:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 20:05:56 +0000 (20:05 +0000)
FP_EXTEND from!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19674 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index 7ad797d..f6065b1 100644 (file)
@@ -1224,10 +1224,6 @@ unsigned ISel::SelectExpr(SDOperand N) {
     BuildMI(BB, X86::MOV32ri, 1, Result).addExternalSymbol(Sym);
     return Result;
   }
-  case ISD::FP_EXTEND:
-    Tmp1 = SelectExpr(N.getOperand(0));
-    BuildMI(BB, X86::FpMOV, 1, Result).addReg(Tmp1);
-    return Result;
   case ISD::ZERO_EXTEND: {
     int DestIs16 = N.getValueType() == MVT::i16;
     int SrcIs16  = N.getOperand(0).getValueType() == MVT::i16;
@@ -1287,6 +1283,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
   }
   case ISD::TRUNCATE:
     // Fold TRUNCATE (LOAD P) into a smaller load from P.
+    // FIXME: This should be performed by the DAGCombiner.
     if (isFoldableLoad(N.getOperand(0), SDOperand())) {
       switch (N.getValueType()) {
       default: assert(0 && "Unknown truncate!");