@@ -8,13 +8,12 @@ target triple = "dxil-pc-shadermodel6.7-library"
8
8
; CHECK-OBJ: TypedUAVLoadAdditionalFormats: true
9
9
10
10
; CHECK: Combined Shader Flags for Module
11
- ; CHECK-NEXT: Shader Flags Value: 0x200002000
11
+ ; CHECK-NEXT: Shader Flags Value: 0x00002000
12
12
13
13
; CHECK: Note: shader requires additional functionality:
14
14
; CHECK: Typed UAV Load Additional Formats
15
- ; CHECK: Any UAV may not alias any other UAV
16
15
17
- ; CHECK: Function multicomponent : 0x200002000
16
+ ; CHECK: Function multicomponent : 0x00002000
18
17
define <4 x float > @multicomponent () #0 {
19
18
%res = call target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 )
20
19
@llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
@@ -24,7 +23,7 @@ define <4 x float> @multicomponent() #0 {
24
23
ret <4 x float > %val
25
24
}
26
25
27
- ; CHECK: Function onecomponent : 0x200000000
26
+ ; CHECK: Function onecomponent : 0x00000000
28
27
define float @onecomponent () #0 {
29
28
%res = call target ("dx.TypedBuffer" , float , 1 , 0 , 0 )
30
29
@llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
@@ -34,7 +33,7 @@ define float @onecomponent() #0 {
34
33
ret float %val
35
34
}
36
35
37
- ; CHECK: Function noload : 0x200000000
36
+ ; CHECK: Function noload : 0x00000000
38
37
define void @noload (<4 x float > %val ) #0 {
39
38
%res = call target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 )
40
39
@llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
@@ -44,4 +43,8 @@ define void @noload(<4 x float> %val) #0 {
44
43
ret void
45
44
}
46
45
46
+ !llvm.module.flags = !{!0 }
47
+ !0 = !{i32 1 , !"dx.resmayalias" , i32 1 }
48
+
47
49
attributes #0 = { convergent norecurse nounwind "hlsl.export" }
50
+
0 commit comments