Change JIT for different layout of fp80.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67629 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 33f29b4..4e182d4 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -752,11 +752,11 @@
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: