From f259f3f312a602ffc6df0133538eb9b3a2efafe0 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 24 Mar 2009 17:35:45 +0000 Subject: Change JIT for different layout of fp80. llvm-svn: 67629 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp') diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 33f29b4e4c3..4e182d49835 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -752,11 +752,11 @@ void ExecutionEngine::StoreValueToMemory(const GenericValue &Val, uint16_t *Dest = (uint16_t*)Ptr; const uint16_t *Src = (uint16_t*)Val.IntVal.getRawData(); // This is endian dependent, but it will only work on x86 anyway. - Dest[0] = Src[4]; - Dest[1] = Src[0]; - Dest[2] = Src[1]; - Dest[3] = Src[2]; - Dest[4] = Src[3]; + Dest[0] = Src[0]; + Dest[1] = Src[1]; + Dest[2] = Src[2]; + Dest[3] = Src[3]; + Dest[4] = Src[4]; break; } case Type::PointerTyID: -- cgit v1.2.3