aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-12 20:39:39 +0000
committerChris Lattner <sabre@nondot.org>2003-05-12 20:39:39 +0000
commitb70c1381b4174e939d8bd4fdff7b8cb20ff42e24 (patch)
treec1dec59bfc26f7988315f28fc952eccf05bbf7ce /lib/Target
parent8c1919475f9e35cf5f079e076f52b995638357c2 (diff)
downloadexternal_llvm-b70c1381b4174e939d8bd4fdff7b8cb20ff42e24.zip
external_llvm-b70c1381b4174e939d8bd4fdff7b8cb20ff42e24.tar.gz
external_llvm-b70c1381b4174e939d8bd4fdff7b8cb20ff42e24.tar.bz2
Remove the assertion failure of course... doh
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp7
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp7
2 files changed, 0 insertions, 14 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index 7d231e9..6b2ba39 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -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.
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index 7d231e9..6b2ba39 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -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.