diff options
author | Huihui Zhang <huihuiz@quicinc.com> | 2019-09-23 23:48:32 +0000 |
---|---|---|
committer | Huihui Zhang <huihuiz@quicinc.com> | 2019-09-23 23:48:32 +0000 |
commit | 5b5f1c8efd676696f2f035f70bce0efc955b9019 (patch) | |
tree | 6fb5c163be80e9333d33c7aff70ba52ed7bac68b /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py | |
parent | 1cefad10cfd32a4c24d23139cdd44350d5374419 (diff) | |
download | bcm5719-llvm-5b5f1c8efd676696f2f035f70bce0efc955b9019.tar.gz bcm5719-llvm-5b5f1c8efd676696f2f035f70bce0efc955b9019.zip |
[NFC][InstCombine] Add tests for shifty implementation of clamping.
Summary:
Clamp negative to zero and clamp positive to allOnes are common
operation in image saturation.
Add tests for shifty implementation of clamping, as prepare work for
folding:
and(ashr(subNSW(Y, X), ScalarSizeInBits(Y)-1), X) --> X s> 0 ? X : 0;
or(ashr(subNSW(Y, X), ScalarSizeInBits(Y)-1), X) --> X s> Y ? allOnes : X.
Reviewers: lebedev.ri, efriedma, spatel, kparzysz, bcahoon
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67798
llvm-svn: 372671
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions