brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 94597b3 Raw
28 lines · plain
1; RUN: llc -O0 -mtriple=spirv-unknown-linux %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-vulkan-unknown %s -o - -filetype=obj | spirv-val %}3 4target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"5target triple = "spirv-unknown-vulkan-compute"6 7; CHECK-DAG:   %[[#uint:]] = OpTypeInt 32 08; CHECK-DAG: %[[#uint_3:]] = OpConstant %[[#uint]] 39; CHECK-DAG:   %[[#bool:]] = OpTypeBool10 11define spir_func void @main() #0 {12entry:13  %0 = call token @llvm.experimental.convergence.entry()14; CHECK:   %[[#]] = OpGroupNonUniformElect %[[#bool]] %[[#uint_3]]15  %1 = call i1 @llvm.spv.wave.is.first.lane() [ "convergencectrl"(token %0) ]16  ret void17}18 19declare i32 @__hlsl_wave_get_lane_index() #120 21attributes #0 = { convergent norecurse "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }22attributes #1 = { convergent }23 24!llvm.module.flags = !{!0, !1}25 26!0 = !{i32 1, !"wchar_size", i32 4}27!1 = !{i32 4, !"dx.disable_optimizations", i32 1}28