Skip to content

Commit 898854e

Browse files
committed
add template test case for checking if the shader flags are set
1 parent dc27c2d commit 898854e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2+
;
3+
; CHECK: ; Shader Flags Value: 0x00080000
4+
; CHECK: ; Note: shader requires additional functionality:
5+
; CHECK-NEXT: ; Wave level operations
6+
; CHECK-NEXT: ; Note: extra DXIL module flags:
7+
; CHECK-NEXT: {{^;$}}
8+
9+
target triple = "dxil-pc-shadermodel6.7-library"
10+
11+
define noundef half @wave_rla_half(half noundef %expr, i32 noundef %idx) {
12+
entry:
13+
%ret = call half @llvm.dx.wave.readlane.f16(half %expr, i32 %idx)
14+
ret half %ret
15+
}

0 commit comments

Comments
 (0)