summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-12-09 12:47:12 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-12-09 12:47:12 +0000
commit3519dce968d307ee9fedca7c25ff6624549fd185 (patch)
treef6bf73ef559f9cebade63483065577cbb660e938 /clang/lib/Serialization/GlobalModuleIndex.cpp
parentcfea74944a3158b3caab91f7ca6b741a42637738 (diff)
downloadbcm5719-llvm-3519dce968d307ee9fedca7c25ff6624549fd185.tar.gz
bcm5719-llvm-3519dce968d307ee9fedca7c25ff6624549fd185.zip
[mips][msa] Fix invalid generated code when lowering FrameIndex involving unaligned offsets.
Summary: The MSA ld.[bhwd] and st.[bhwd] instructions scale the immediate by the element size before use as an offset. The offset must therefore be a multiple of the element size to be valid in these instructions. However, an unaligned base address is valid in MSA. This commit causes the compiler to emit valid code when the calculated offset is not a multiple of the element size by accounting for the offset using addiu and using a zero offset in the load/store. Depends on D2338 Reviewers: matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D2339 llvm-svn: 196777
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud