]> granicus.if.org Git - llvm/commit
[PowerPC] Use rldicr instruction for AND with an immediate if possible
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 24 Feb 2017 18:03:16 +0000 (18:03 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 24 Feb 2017 18:03:16 +0000 (18:03 +0000)
commit92606b3cc6064d6496138fe2b43286e09804aef9
treee9b527c97d3ca2185e0fdac0b2917e67bda840f2
parent30e6a76a6a9f6e2814ff46ee4bd61969d1ae58b9
[PowerPC] Use rldicr instruction for AND with an immediate if possible

Emit clrrdi (extended mnemonic for rldicr) for AND-ing with masks that
clear bits from the right hand size.

Committing on behalf of Hiroshi Inoue.

Differential Revision: https://reviews.llvm.org/D29388

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll
test/CodeGen/PowerPC/i64_fp_round.ll
test/CodeGen/PowerPC/srl-mask.ll