File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
clang/test/CodeGenHLSL/builtins Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type - emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected
1+ // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected
22
33void test_too_many_arg () {
44 __builtin_group_memory_barrier_with_group_sync (0 );
Original file line number Diff line number Diff line change 11// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
2- // RUN: dxil-pc-shadermodel6.3-compute %s \
2+ // RUN: dxil-pc-shadermodel6.0-library %s \
33// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
4- // RUN: -DTARGET=dx -DFNATTRS=noundef
4+ // RUN: -DTARGET=dx -DFNATTRS=noundef -check-prefixes=CHECK,CHECK-DXIL
55// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
66// RUN: spirv-unknown-vulkan-compute %s \
77// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \
8- // RUN: -DTARGET=spv -DFNATTRS="spir_func noundef"
8+ // RUN: -DTARGET=spv -DFNATTRS="spir_func noundef" -check-prefixes=CHECK,CHECK-SPIRV
99
10- // CHECK: define [[FNATTRS]] i32 @
11- [numthreads (1 , 1 , 1 )]
12- void main () {
13- while (true ) {
10+ // CHECK-DXIL: define void @
11+ // CHECK-SPIRV: define spir_func void @
12+ void test_GroupMemoryBarrierWithGroupSync () {
1413// CHECK: call void @llvm.[[TARGET]].groupMemoryBarrierWithGroupSync()
1514 GroupMemoryBarrierWithGroupSync ();
16- break ;
17- }
1815}
1916
2017// CHECK: declare void @llvm.[[TARGET]].groupMemoryBarrierWithGroupSync() #[[ATTRS:[0-9]+]]
You can’t perform that action at this time.
0 commit comments