[PowerPC] Compute the MMO offset for an unaligned load with signed arithmetic
authorHal Finkel <hfinkel@anl.gov>
Thu, 3 Sep 2015 21:12:15 +0000 (21:12 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 3 Sep 2015 21:12:15 +0000 (21:12 +0000)
commitc2a163944ae333419b032f04e77d93527308b46a
tree9c1919ef3d6cd29cb53caecbba39e43e7070d4ca
parent5707dff00a39390c595f7e144ed13b331242bafd
[PowerPC] Compute the MMO offset for an unaligned load with signed arithmetic

If you compute the MMO offset using unsigned arithmetic, you end up with a
large positive offset instead of a small negative one. In theory, this could
cause bad instruction-scheduling decisions later.

I noticed this by inspection from the debug output, and using that for the
regression test is the best I can do right now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246805 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/unal-vec-negarith.ll [new file with mode: 0644]