yingopq wrote: > Are we not just missing a legality check inside CTTZTableLookup? I'd really like to avoid yet another TLI hack. OK, I would change this pr. https://github.com/llvm/llvm-project/pull/179633