diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-17 22:22:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 22:22:34 -0700 |
| commit | 12e891ed9ac934adbcc4160da6a05938cc38b529 (patch) | |
| tree | a519a57b0e7a53c17f47bf43989a51e88f911f66 /tests/spirv/debug-printf.slang | |
| parent | a618b8c5e249b0f20e6c0c95f9da1b5cbfdbf08b (diff) | |
Cleanup definition of `printf`. (#5330)
* Cleanup definition of `printf`.
* Fix.
* Fix spirv generation.
* Fix.
* enhance test.
Diffstat (limited to 'tests/spirv/debug-printf.slang')
| -rw-r--r-- | tests/spirv/debug-printf.slang | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
