jyli0116 wrote: The size of the patch is getting rather large - I'm going to split it between three patches: two NFC patches for adding the tests and the legalizer respectively, with the combiner code being left within this patch https://github.com/llvm/llvm-project/pull/150219