OSDN Git Service

[InstCombine] Add tests for cases where we don't recognize type promoted rotate idioms.
authorCraig Topper <craig.topper@intel.com>
Fri, 11 May 2018 00:46:09 +0000 (00:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 11 May 2018 00:46:09 +0000 (00:46 +0000)
commita88573cfc245b6ee885c42650c72aa4c1a102463
treebda85817dde3553e7697680705daa948c775a98a
parentfcfa4b82779686ecad7e525a4cdb05d5a76c8456
[InstCombine] Add tests for cases where we don't recognize type promoted rotate idioms.

These rotates take the form

(x << (n & mask)) | (x >> (-n & mask)) where mask is bitwidth - 1.

If x has been promoted to a wider type than its original bit width due to type promotion we fail to narrower it and therefore don't recognize it as a rotate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332068 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/rotate.ll