================
@@ -460,3 +468,76 @@ __device__ int foo4() {
const char* s = "format str%d";
return printf(s, 10);
}
+
+// A 32-bit pointer, here to LDS or private memory, is stored in 4 bytes but
+// still takes an 8-byte slot, so the argument after it starts 8 bytes later.
----------------
arsenm wrote:
I can't say this printf specific ABI makes any sense
https://github.com/llvm/llvm-project/pull/237178
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits