brintos

brintos / llvm-project-archived public Read only

0
0
Text · 625 B · e8b1dc2 Raw
16 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan1.3-compute %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan1.3-compute %s -o - -filetype=obj | spirv-val %}3 4; CHECK-DAG: %[[#U32:]] = OpTypeInt 32 05 6; CHECK-DAG: %[[#VAL:]] = OpConstant %[[#U32]] 4567; CHECK-DAG: %[[#VTYPE:]] = OpTypePointer Private %[[#U32]]8; CHECK-DAG: %[[#VAR:]] = OpVariable %[[#VTYPE]] Private %[[#VAL]]9; CHECK-NOT: OpDecorate %[[#VAR]] LinkageAttributes10@PrivInternal = internal addrspace(10) global i32 45611 12define void @main() {13  %l = load i32, ptr addrspace(10) @PrivInternal14  ret void15}16