Skip to content

Commit bff904d

Browse files
committed
Tests fixed
1 parent b7d329a commit bff904d

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

clang/test/CodeGenHLSL/builtins/GroupMemoryBarrierWithGroupSync-errors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
void test_too_many_arg() {
44
__builtin_group_memory_barrier_with_group_sync(0);

clang/test/CodeGenHLSL/builtins/GroupMemoryBarrierWithGroupSync.hlsl

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
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]+]]

0 commit comments

Comments
 (0)