[llvm] [GlobalISel] Add `G_FSHL` and `G_FSHR` to computeKnownBits (PR #191260)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 04:03:17 PDT 2026


================
@@ -673,6 +673,25 @@ TEST(KnownBitsTest, UnaryExhaustive) {
       [](const APInt &N) { return N * N; }, /*CheckOptimality=*/false);
 }
 
+TEST(KnownBitsTest, FunnelShift) {
----------------
jayfoad wrote:

Exhaustive testing would be even better. But I guess this is OK to start with.

https://github.com/llvm/llvm-project/pull/191260


More information about the llvm-commits mailing list