[PowerPC] Sign extend sub-word values for atomic comparisons
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 22 Sep 2016 19:06:38 +0000 (19:06 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 22 Sep 2016 19:06:38 +0000 (19:06 +0000)
commit8dacca943af8a53a23b1caf3142d10fb4a77b645
tree83dc8a738ca8559972b1badca5b364fd1b370af3
parent29c59cc15ddd2d8f94c08860f84c0700f6b507f9
[PowerPC] Sign extend sub-word values for atomic comparisons

Atomic comparison instructions use the sub-word load instruction on
Power8 and up but the value is not sign extended prior to the signed word
compare instruction. This patch adds that sign extension.

llvm-svn: 282182
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/pr30451.ll [new file with mode: 0644]