llvm-project
0321f3ee - [AArch64][GlobalISel] Do no skip zext in getTestBitReg. (#177991)

Commit
99 days ago
[AArch64][GlobalISel] Do no skip zext in getTestBitReg. (#177991) We can, when attempting to lower to tbz, skip a zext that is then not accounted for elsewhere. The attached test ends up with a tbz from an extract that then does not properly zext the value extracted from the vector. This patch fixes that by only looking through a G_ZEXT if the bit checked is in the low part of the value, lining up the code with the comment. Fixes #173895
Author
Parents
Loading