Skip to content

Commit 6fd3879

Browse files
committed
add test
1 parent 352cc33 commit 6fd3879

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
; RUN: llc -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - | FileCheck %s
22
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - -filetype=obj | spirv-val --target-env vulkan1.3 %}
33

4-
; CHECK-DAG: OpEntryPoint Fragment %[[#entry:]] "main"
4+
; CHECK-DAG: OpEntryPoint Fragment %[[#entry:]] "main" {{.*}}
55
; CHECK-DAG: OpExecutionMode %[[#entry]] OriginUpperLeft
66

7-
define void @main() #1 {
7+
8+
define void @main() #0 {
89
entry:
10+
%0 = tail call target("spirv.VulkanBuffer", [0 x i32], 12, 1) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_1t(i32 0, i32 1, i32 1, i32 0, i1 false)
11+
%1 = tail call noundef align 4 dereferenceable(4) ptr addrspace(11) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_1t(target("spirv.VulkanBuffer", [0 x i32], 12, 1) %0, i32 0)
12+
store i32 1, ptr addrspace(11) %1, align 4
13+
914
ret void
1015
}
1116

12-
attributes #1 = { "hlsl.shader"="pixel" }
17+
declare target("spirv.VulkanBuffer", [0 x i32], 12, 1) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_1t(i32, i32, i32, i32, i1) #1
18+
19+
attributes #0 = { "hlsl.shader"="pixel" }
20+
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) }

0 commit comments

Comments
 (0)