File: LocalSizeHintId.spvasm

package info (click to toggle)
spirv-llvm-translator-14 14.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,640 kB
  • sloc: cpp: 47,664; lisp: 3,704; sh: 153; python: 43; makefile: 33
file content (27 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (5)
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
               OpMemoryModel Physical64 OpenCL
               OpEntryPoint Kernel %fn "testLocalSizeHintId"
               OpExecutionModeId %fn LocalSizeHintId %uint_64 %uint_1 %uint_1sco
       %void = OpTypeVoid
       %uint = OpTypeInt 32 0
     %uint_1 = OpConstant %uint 1
    %uint_64 = OpConstant %uint 64
  %uint_1sco = OpSpecConstantOp %uint UDiv %uint_64 %uint_64
       %fnTy = OpTypeFunction %void

; CHECK: define spir_kernel void @testLocalSizeHintId() {{.*}} !work_group_size_hint ![[MD:[0-9]+]]
; CHECK: ![[MD]] = !{i32 64, i32 1, i32 1}

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