OSDN Git Service

[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)
commitf2f9e2bcc5e9dd33c5c74e1aa615bf9f28f7d316
treeae4f4f8b9e1c3b9f68ae4e5cf27dcce1c0d65ee9
parent489cfe73c22cfb191ec8f334eb21745a349d7dfa
[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.

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