From 12e891ed9ac934adbcc4160da6a05938cc38b529 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 17 Oct 2024 22:22:34 -0700 Subject: Cleanup definition of `printf`. (#5330) * Cleanup definition of `printf`. * Fix. * Fix spirv generation. * Fix. * enhance test. --- tests/spirv/debug-printf.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/spirv/debug-printf.slang b/tests/spirv/debug-printf.slang index cf8bfafa3..3a5906aa5 100644 --- a/tests/spirv/debug-printf.slang +++ b/tests/spirv/debug-printf.slang @@ -4,8 +4,8 @@ void main() { printf("test"); - printf("test1 %d", 5); + printf(R"(test1 "%d %d")", 5, 6); // CHECK: %[[SET:[0-9]+]] = OpExtInstImport "NonSemantic.DebugPrintf" // CHECK: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} - // CHECK: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} %{{[a-zA-Z0-9_]+}} + // CHECK: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} %int_5 %int_6 } -- cgit v1.2.3