diff options
author | Dale Johannesen <dalej@apple.com> | 2010-05-16 20:19:04 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-05-16 20:19:04 +0000 |
commit | 5aef95c9c34c334d23e42e23e274f9c38dd334bf (patch) | |
tree | 1fbf88214e0c74dc082cd8a94539cc9fc115322d | |
parent | bc44245719c5aa167f3366613911987301d1d5e3 (diff) | |
download | external_llvm-5aef95c9c34c334d23e42e23e274f9c38dd334bf.zip external_llvm-5aef95c9c34c334d23e42e23e274f9c38dd334bf.tar.gz external_llvm-5aef95c9c34c334d23e42e23e274f9c38dd334bf.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103914 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 | ||||
-rw-r--r-- | test/CodeGen/X86/2010-05-16-nosseconversion.ll | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 35127eb..9fa7bb1 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -217,10 +217,6 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) 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 diff --git a/test/CodeGen/X86/2010-05-16-nosseconversion.ll b/test/CodeGen/X86/2010-05-16-nosseconversion.ll index 266681c..e69de29 100644 --- a/test/CodeGen/X86/2010-05-16-nosseconversion.ll +++ b/test/CodeGen/X86/2010-05-16-nosseconversion.ll @@ -1,11 +0,0 @@ -; RUN: llc -mtriple=x86_64-apple-darwin -mattr=-sse < %s - -@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 -} |