diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-07 14:18:38 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-07 14:18:38 +0000 |
commit | 847938925b4c4ac12d367c01b4085559d5b1be6b (patch) | |
tree | 276b86c75a47b471895e02f38fd530f7ecb1b9c8 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | 898fbd7c4717ed1623b735925f363be58ce1ac6b (diff) | |
download | bcm5719-llvm-847938925b4c4ac12d367c01b4085559d5b1be6b.tar.gz bcm5719-llvm-847938925b4c4ac12d367c01b4085559d5b1be6b.zip |
[NFC][InstSimplify] Add tests for shl nuw C, %x -> C fold.
%r = shl nuw i8 C, %x
As per langref: If the nuw keyword is present, then the shift produces
a poison value if it shifts out any non-zero bits.
Thus, if the sign bit is set on C, then %x can only be 0,
which means that %r can only be C.
https://rise4fun.com/Alive/WMk
Was mentioned in D47428 review.
llvm-svn: 334200
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions