brad0 wrote:

I tested this with llc against GCC 16.2. The PR breaks some code that works 
today:

- `i64 inreg` is already used by clang for `struct { float f; long l; }`. After 
6 int args, llc now crashes ("Impossible reg-to-reg copy").
- `CC_Sparc64_Half` does not allocate registers, so `f(struct { float f; int i; 
}, long)` puts the long in `%o0`. Returning `struct { float a, b; double c; }` 
uses `%d0`.
- With 17 empty structs before an `i8`, the `i8` is not passed. The callee 
asserts in LowerArguments.
- A real (non-poison) value for an empty struct past slot 6 crashes. The tests 
only use poison.
- `(long, fp128, long)` puts the last long in `%o3`, and `(7 x long, __int128, 
double)` puts the double in `%d18`. GCC uses `%o4` and `%d20`.

IR repro cases are in the attached tarball.

[pr217065-repro.tar.gz](https://github.com/user-attachments/files/35251402/pr217065-repro.tar.gz)

https://github.com/llvm/llvm-project/pull/217065
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to