Zeroing out used, but not modified, registers can destroy the contents
of non-volatile registers. This can lead to programs crashing in horky
ways.
Because of this, I'm wary of the -fzero-call-used-regs feature with the
"all-*" options. It would have to be used with great care, which means
it probably has an extremely limited use.
I like that the existing test cases are concise; it makes it easier to understand the behavior for the many different values of zero-call-used-regs.
Rather than update all of the existing tests, would you mind adding your new test case as a new test fn to the file? I suspect since this is affecting the kernel, we'd only need to test used-gpr?
That should significantly reduce the diffstat to this test file to help reviewers better understand the change.