summaryrefslogtreecommitdiffstats
path: root/tests/spirv/debug-printf.slang
blob: 3a5906aa5736bc5c558adfd2b318d07f35915f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -emit-spirv-directly
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -emit-spirv-via-glsl

void main()
{
    printf("test");
    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_]+}} %int_5 %int_6
}