Skip to content

Commit 8ff1d0f

Browse files
committed
review: add test description
1 parent 580aa86 commit 8ff1d0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/test/CodeGen/DirectX/ShaderFlags/wave-ops.ll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
22
;
3+
; Test that we have the correct shader flags to indicate that there are wave
4+
; ops set at the module level
5+
;
36
; CHECK: ; Shader Flags Value: [[WAVE_FLAG:0x00080000]]
47
; CHECK: ; Note: shader requires additional functionality:
58
; CHECK-NEXT: ; Wave level operations
@@ -8,6 +11,9 @@
811

912
target triple = "dxil-pc-shadermodel6.7-library"
1013

14+
; Test the indiviual ops that they have the same Shader Wave flag at the
15+
; function level to ensure that each op is setting it accordingly
16+
1117
define noundef i1 @wave_is_first_lane() {
1218
entry:
1319
; CHECK: Function wave_is_first_lane : [[WAVE_FLAG]]

0 commit comments

Comments
 (0)