aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-04-05 04:46:17 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-04-05 04:46:17 +0000
commitdba13e7922a3d89f8a33766e7a478b0ba240648f (patch)
treeb2b4fa4a4d9080961f0c4271835d9eb26159bc16 /llvm/lib/CodeGen/MachineFunction.cpp
parentf0ef4e40198a509b900e5d6ba95515a2d041dd06 (diff)
downloadllvm-dba13e7922a3d89f8a33766e7a478b0ba240648f.zip
llvm-dba13e7922a3d89f8a33766e7a478b0ba240648f.tar.gz
llvm-dba13e7922a3d89f8a33766e7a478b0ba240648f.tar.bz2
The disassembler impl. of MCDisassembler::getInstruction() was using the pattern
uint32_t insn; MemoryObject.readBytes(Address, 4, (uint8_t*)&insn, NULL) to read 4 bytes of memory contents into a 32-bit uint variable. This leaves the interpretation of byte order up to the host machine and causes PPC test cases of arm-tests, neon-tests, and thumb-tests to fail. Fixed to use a byte array for reading the memory contents and shift the bytes into place for the 32-bit uint variable in the ARM case and 16-bit halfword in the Thumb case. llvm-svn: 100403
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions