diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-05-16 18:22:38 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-05-16 18:22:38 +0000 |
| commit | fc1492d71b1c8b7005ef679c4092d28424c8c755 (patch) | |
| tree | 9ec2ed8b217731068a9397223fcc63eaf2c67762 /llvm/lib | |
| parent | 45a999719b45e1ef00d928c54ca25ef8ef6889ff (diff) | |
| download | bcm5719-llvm-fc1492d71b1c8b7005ef679c4092d28424c8c755.tar.gz bcm5719-llvm-fc1492d71b1c8b7005ef679c4092d28424c8c755.zip | |
Make x86-64 64-bit bitconvert work when SSE is not available.
(This worked as of about 6 months ago and I didn't track down
exactly what broke it; I think this fix is appropriate.)
llvm-svn: 103911
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 9fa7bb1d3cc..35127eb84db 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -217,6 +217,10 @@ 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 |

