brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1014 B · e709ed3 Raw
21 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \2// RUN:   dxil-pc-shadermodel6.3-library %s \3// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s \4// RUN:   -DTARGET=dx -check-prefixes=CHECK,CHECK-DXIL5// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \6// RUN:   spirv-unknown-vulkan-compute %s \7// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s \8// RUN:   -DTARGET=spv -check-prefixes=CHECK,CHECK-SPIRV9 10// CHECK-DXIL: define hidden void @11// CHECK-SPIRV: define hidden spir_func void @12void test_GroupMemoryBarrierWithGroupSync() {13// CHECK-DXIL: call void @llvm.[[TARGET]].group.memory.barrier.with.group.sync()14// CHECK-SPIRV: call spir_func void @llvm.[[TARGET]].group.memory.barrier.with.group.sync()15  GroupMemoryBarrierWithGroupSync();16}17 18// CHECK: declare void @llvm.[[TARGET]].group.memory.barrier.with.group.sync() #[[ATTRS:[0-9]+]]19// CHECK-NOT: attributes #[[ATTRS]] = {{.+}}memory(none){{.+}}20// CHECK: attributes #[[ATTRS]] = {{.+}}convergent{{.+}}21