Skip to content

Commit e225a57

Browse files
committed
Add another test.
1 parent 6de0eb9 commit e225a57

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clang/test/CodeGenHLSL/wavesize.hlsl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// RUN: dxil-pc-shadermodel6.6-compute %s -DSM66 -hlsl-entry foo \
33
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s
44

5+
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
6+
// RUN: dxil-pc-shadermodel6.8-compute %s -DNO_PREFERR -hlsl-entry foo \
7+
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=NO_PREFERR
8+
59
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
610
// RUN: dxil-pc-shadermodel6.8-compute %s -hlsl-entry foo \
711
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=CHECK-SM68
@@ -11,12 +15,17 @@
1115
// CHECK:define void @foo()
1216
// CHECK:"hlsl.wavesize"="8,0,0"
1317

18+
// NO_PREFERR:define void @foo()
19+
// NO_PREFERR:"hlsl.wavesize"="8,128,0"
20+
1421
// CHECK-SM68:define void @foo()
1522
// CHECK-SM68:"hlsl.wavesize"="8,128,64"
1623

1724
[numthreads(16,8,1)]
1825
#ifdef SM66
1926
[WaveSize(8)]
27+
#elif NO_PREFERR
28+
[WaveSize(8, 128)]
2029
#else
2130
[WaveSize(8, 128, 64)]
2231
#endif

0 commit comments

Comments
 (0)