[PATCH] D16372: [CUDA] Make printf work.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 15:24:31 PST 2016


jlebar added inline comments.

================
Comment at: test/CodeGenCUDA/printf.cu:12
@@ +11,3 @@
+// Check a simple call to printf end-to-end.
+__device__ int CheckSimple() {
+  // CHECK: [[FMT:%[0-9]+]] = load{{.*}}%fmt
----------------
tra wrote:
> You may want to add a test case for printf("constant string w/o format args").
> It would check no-arguments case and would also verify that we don't get optimized into puts().
Good idea, done.


http://reviews.llvm.org/D16372





More information about the cfe-commits mailing list