make `Complex` ABI-compatible on sparc64 and powerpc64
tracking issue: https://github.com/rust-lang/rust/issues/154023
Make the ABI for `Complex` match C for two slightly more involved targets.
For Sparc64 the implementation matches GCC and Clang 24 and up. In https://github.com/llvm/llvm-project/pull/215015 a bug with how small complex numbers are passed was fixed.
For powerpc64 we match Clang exactly (and Clang is compatible with GCC for this target).
cc @beetrees @Gelbpunkt
One extension worth noting is the use of revisions as custom prefixes for
FileCheck. If your codegen test has different behavior based on the chosen
target or different compiler flags that you want to exercise, you can use a
revisions annotation, like so:
After specifying those variations, you can write different expected, or
explicitly unexpected output by using <prefix>-SAME: and <prefix>-NOT:,
like so: