File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: dxil-pc-shadermodel6.6-compute %s -DSM66 -hlsl-entry foo \
3
3
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s
4
4
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
+
5
9
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
6
10
// RUN: dxil-pc-shadermodel6.8-compute %s -hlsl-entry foo \
7
11
// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=CHECK-SM68
11
15
// CHECK:define void @foo()
12
16
// CHECK:"hlsl.wavesize"="8,0,0"
13
17
18
+ // NO_PREFERR:define void @foo()
19
+ // NO_PREFERR:"hlsl.wavesize"="8,128,0"
20
+
14
21
// CHECK-SM68:define void @foo()
15
22
// CHECK-SM68:"hlsl.wavesize"="8,128,64"
16
23
17
24
[numthreads (16 ,8 ,1 )]
18
25
#ifdef SM66
19
26
[WaveSize (8 )]
27
+ #elif NO_PREFERR
28
+ [WaveSize (8 , 128 )]
20
29
#else
21
30
[WaveSize (8 , 128 , 64 )]
22
31
#endif
You can’t perform that action at this time.
0 commit comments