File: SubgroupsPerWorkgroupId.spvasm

package info (click to toggle)
spirv-llvm-translator-14 14.0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,700 kB
  • sloc: cpp: 47,811; lisp: 3,704; sh: 153; python: 43; makefile: 41
file content (27 lines) | stat: -rw-r--r-- 953 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; REQUIRES: spirv-as

; RUN: spirv-as %s --target-env spv1.2 -o %t.spv
; RUN: spirv-val %t.spv
; RUN: llvm-spirv -r -o %t.rev.bc %t.spv
; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s

               OpCapability Addresses
               OpCapability Linkage
               OpCapability Kernel
               OpCapability SubgroupDispatch
               OpMemoryModel Physical64 OpenCL
               OpEntryPoint Kernel %fn "testSubgroupsPerWorkgroupId"
               OpExecutionModeId %fn SubgroupsPerWorkgroupId %uint_8
       %void = OpTypeVoid
       %uint = OpTypeInt 32 0
     %uint_4 = OpConstant %uint 4
     %uint_8 = OpSpecConstantOp %uint IAdd %uint_4 %uint_4
       %fnTy = OpTypeFunction %void

; CHECK: !spirv.ExecutionMode = !{![[MD:[0-9]+]]}
; CHECK: ![[MD]] = !{void ()* @testSubgroupsPerWorkgroupId, i32 37, i32 8}

         %fn = OpFunction %void None %fnTy
      %entry = OpLabel
               OpReturn
               OpFunctionEnd