See https://github.com/llvm/llvm-project/issues/57261 for full details. Essentially, a previous version of the psABI indicated (by my reading) that integer scalars passed on the stack were anyext. A later commit changed this to indicate that they are in fact signext/zeroext just as if they were passed in registers.
This patch adjusts Clang's ABI lowering to match this. A flag wasn't added to retain the old behaviour, as the hope is that it's sufficiently hard to trigger an issue due to this that it isn't worthwhile doing so.