It's the same as the ZEXT/TRUNC case, except SrcBitWidth is given by the immediate operand.
Update KnownBitsTest.cpp and a MIR test for a concrete example.
Paths
| Differential D95566
[GlobalISel] Implement computeKnownBits for G_ASSERT_ZEXT ClosedPublic Authored by paquette on Jan 27 2021, 2:39 PM.
Details Summary It's the same as the ZEXT/TRUNC case, except SrcBitWidth is given by the immediate operand. Update KnownBitsTest.cpp and a MIR test for a concrete example.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 28 2021, 2:27 PM Closed by commit rGf19971d1ded2: [GlobalISel] Implement computeKnownBits for G_ASSERT_ZEXT (authored by paquette). · Explain WhyJan 28 2021, 4:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 319681 llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-and-trivial-mask.mir
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
|
This should get braces