1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Transforms/InstCombine/X86
Sanjay Patel 7941cb8b83 [ValueTracking] look through bitcast of vector in computeKnownBits
This borrows as much as possible from the SDAG version of the code
(originally added with D27129 and since updated with big endian support).

In IR, we can test more easily for correctness than we did in the
original patch. I'm using the simplest cases that I could find for
InstSimplify: we computeKnownBits on variable shift amounts to see if
they are zero or in range. So shuffle constant elements into a vector,
cast it, and shift it.

The motivating x86 example from https://llvm.org/PR50123 is also here.
We computeKnownBits in the caller code, but we only check if the shift
amount is in range. That could be enhanced to catch the 2nd x86 test -
if the shift amount is known too big, the result is 0.

Alive2 understands the datalayout and agrees that the tests here are
correct - example:
https://alive2.llvm.org/ce/z/KZJFMZ

Differential Revision: https://reviews.llvm.org/D104472
2021-06-23 11:46:46 -04:00
..
2009-03-23-i80-fp80.ll
addcarry.ll
blend_x86.ll
clmulqdq.ll
lit.local.cfg
pr2645-1.ll
shufflemask-undef-inseltpoison.ll
shufflemask-undef.ll
x86-addsub-inseltpoison.ll
x86-addsub.ll
x86-amx-load-store.ll
x86-amx.ll
x86-avx2-inseltpoison.ll
x86-avx2.ll
x86-avx512-inseltpoison.ll
x86-avx512.ll
x86-bmi-tbm.ll
x86-crc32-demanded.ll
x86-f16c-inseltpoison.ll
x86-f16c.ll
x86-fma.ll
x86-insertps.ll
x86-masked-memops.ll
x86-movmsk.ll
x86-muldq-inseltpoison.ll
x86-muldq.ll
x86-pack-inseltpoison.ll
x86-pack.ll
x86-pshufb-inseltpoison.ll
x86-pshufb.ll
x86-sse2-inseltpoison.ll
x86-sse2.ll
x86-sse4a-inseltpoison.ll
x86-sse4a.ll
x86-sse41-inseltpoison.ll
x86-sse41.ll
x86-sse-inseltpoison.ll
x86-sse.ll
x86-vec_demanded_elts-inseltpoison.ll
x86-vec_demanded_elts.ll
x86-vector-shifts-inseltpoison.ll
x86-vector-shifts.ll [ValueTracking] look through bitcast of vector in computeKnownBits 2021-06-23 11:46:46 -04:00
x86-vpermil-inseltpoison.ll
x86-vpermil.ll
x86-xop-inseltpoison.ll
x86-xop.ll