Remove the assertion failure of course... doh
authorChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 20:39:39 +0000 (20:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 20:39:39 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6150 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 7d231e92966369d56856423990ac1fb63164b4fa..6b2ba396805fd955ee2b950bd979d8e143e7de8c 100644 (file)
@@ -1592,13 +1592,6 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
 
   // Handle casts from integer to floating point now...
   if (DestClass == cFP) {
-    // unsigned int -> load as 64 bit int.
-    // unsigned long long -> more complex
-    if (SrcTy->isUnsigned() && SrcTy != Type::UByteTy) {
-      assert(0 && "Cannot handle this type of cast!");
-      abort();  // don't handle unsigned src yet!
-    }
-
     // Promote the integer to a type supported by FLD.  We do this because there
     // are no unsigned FLD instructions, so we must promote an unsigned value to
     // a larger signed value, then use FLD on the larger value.
index 7d231e92966369d56856423990ac1fb63164b4fa..6b2ba396805fd955ee2b950bd979d8e143e7de8c 100644 (file)
@@ -1592,13 +1592,6 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
 
   // Handle casts from integer to floating point now...
   if (DestClass == cFP) {
-    // unsigned int -> load as 64 bit int.
-    // unsigned long long -> more complex
-    if (SrcTy->isUnsigned() && SrcTy != Type::UByteTy) {
-      assert(0 && "Cannot handle this type of cast!");
-      abort();  // don't handle unsigned src yet!
-    }
-
     // Promote the integer to a type supported by FLD.  We do this because there
     // are no unsigned FLD instructions, so we must promote an unsigned value to
     // a larger signed value, then use FLD on the larger value.