[llvm-commits] [llvm] r103914 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2010-05-16-nosseconversion.ll

Dale Johannesen dalej at apple.com
Sun May 16 13:19:04 PDT 2010


Author: johannes
Date: Sun May 16 15:19:04 2010
New Revision: 103914

URL: http://llvm.org/viewvc/llvm-project?rev=103914&view=rev
Log:
Revert 103911; it broke a test that expects bitconvert
<1xi64> -> i64 to work in MMX registers on hosts where -no-sse
is the default (not mine).  The right thing is
to accept this and make i64->f64 conversions go through memory,
but I don't have time right now.


Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
    llvm/trunk/test/CodeGen/X86/2010-05-16-nosseconversion.ll

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=103914&r1=103913&r2=103914&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun May 16 15:19:04 2010
@@ -217,10 +217,6 @@
   if (!X86ScalarSSEf64) {
     setOperationAction(ISD::BIT_CONVERT      , MVT::f32  , Expand);
     setOperationAction(ISD::BIT_CONVERT      , MVT::i32  , Expand);
-    if (Subtarget->is64Bit()) {
-      setOperationAction(ISD::BIT_CONVERT      , MVT::f64  , Expand);
-      setOperationAction(ISD::BIT_CONVERT      , MVT::i64  , Expand);
-    }
   }
 
   // Scalar integer divide and remainder are lowered to use operations that

Modified: llvm/trunk/test/CodeGen/X86/2010-05-16-nosseconversion.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2010-05-16-nosseconversion.ll?rev=103914&r1=103913&r2=103914&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2010-05-16-nosseconversion.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2010-05-16-nosseconversion.ll Sun May 16 15:19:04 2010
@@ -1,11 +0,0 @@
-; RUN: llc -mtriple=x86_64-apple-darwin -mattr=-sse < %s
-
- at x = common global i64 0                          ; <i64*> [#uses=1]
-
-define i32 @foo() nounwind readonly ssp {
-entry:
-  %0 = load i64* @x, align 8                      ; <i64> [#uses=1]
-  %1 = uitofp i64 %0 to double                    ; <double> [#uses=1]
-  %2 = fptosi double %1 to i32                    ; <i32> [#uses=1]
-  ret i32 %2
-}





More information about the llvm-commits mailing list