1 ; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
3 target triple = "dxil-pc-shadermodel6.7-library"
5 ; CHECK: ; Combined Shader Flags for Module
6 ; CHECK-NEXT: ; Shader Flags Value: 0x00000044
8 ; CHECK: ; Note: shader requires additional functionality:
9 ; CHECK-NEXT: ; Double-precision floating point
10 ; CHECK-NEXT: ; Double-precision extensions for 11.1
11 ; CHECK-NEXT: ; Note: extra DXIL module flags:
13 ; CHECK-NEXT: ; Shader Flags for Module Functions
15 ; CHECK: ; Function test_fdiv_double : 0x00000044
16 define double @test_fdiv_double(double %a, double %b) #0 {
17 %res = fdiv double %a, %b
21 ; CHECK: ; Function test_uitofp_i64 : 0x00000044
22 define double @test_uitofp_i64(i64 %a) #0 {
23 %r = uitofp i64 %a to double
27 ; CHECK: ; Function test_sitofp_i64 : 0x00000044
28 define double @test_sitofp_i64(i64 %a) #0 {
29 %r = sitofp i64 %a to double
33 ; CHECK: ; Function test_fptoui_i32 : 0x00000044
34 define i32 @test_fptoui_i32(double %a) #0 {
35 %r = fptoui double %a to i32
39 ; CHECK: ; Function test_fptosi_i64 : 0x00000044
40 define i64 @test_fptosi_i64(double %a) #0 {
41 %r = fptosi double %a to i64
45 attributes #0 = { convergent norecurse nounwind "hlsl.export"}