valadaptive wrote: I'm not sure how to add tests for this, since it seems to all be target-specific. I *did* add tests that cover this behavior as part of https://github.com/llvm/llvm-project/pull/170018. https://github.com/llvm/llvm-project/pull/170689