================ @@ -5797,47 +5844,116 @@ static SDValue combineADDRSPACECAST(SDNode *N, return SDValue(); } +static APInt getPRMTSelector(APInt Selector, unsigned Mode) { ---------------- AlexMaclean wrote: Added https://github.com/llvm/llvm-project/pull/148906