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
2
2
3
3
void test_too_many_arg () {
4
4
__builtin_group_memory_barrier_with_group_sync (0 );
Original file line number Diff line number Diff line change 1
1
// 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 \
3
3
// 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
5
5
// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
6
6
// RUN: spirv-unknown-vulkan-compute %s \
7
7
// 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
9
9
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 () {
14
13
// CHECK: call void @llvm.[[TARGET]].groupMemoryBarrierWithGroupSync()
15
14
GroupMemoryBarrierWithGroupSync ();
16
- break ;
17
- }
18
15
}
19
16
20
17
// CHECK: declare void @llvm.[[TARGET]].groupMemoryBarrierWithGroupSync() #[[ATTRS:[0-9]+]]
You can’t perform that action at this time.
0 commit comments