AArch64: clamp UBFX high-bit to 32-bits
authorTim Northover <tnorthover@apple.com>
Wed, 23 Feb 2022 11:49:43 +0000 (11:49 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 23 Feb 2022 12:48:39 +0000 (12:48 +0000)
commit5658d869ff4cefc5c3626f7e5658bb43b2b32063
tree8fea9ba547d50b188fa960d42ea3b30592939cf6
parentaa9c2d19d9b73589d72114d6e0a4fb4ce42b922b
AArch64: clamp UBFX high-bit to 32-bits

We were producing invalid instructions like "ubfx w0, w0, #20, #16".
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/test/CodeGen/AArch64/bitfield.ll