On Thu, Oct 01, 2026 at 11:09:22AM +0200, Richard Biener wrote:
> This fixes missed constant folding of .BITREVERSE (or other functions
> with _BitInt return value) which was caused due to a SCALAR_INT_MODE_P
> that fails on BLKmode _BitInt types.  Replace this with checking
> the return type rather than its mode which isn't used anyway.
> 
> Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
> 
> OK if that passes?

LGTM, though I'd change also
  if (integer_cst_p (arg0) && integer_cst_p (arg1))
    {
      if (SCALAR_INT_MODE_P (mode))
in the
fold_const_call_1 (combined_fn fn, tree type, tree arg0, tree arg1)
function for consistency.

        Jakub

Reply via email to