1 ; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s
2 ; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
4 target triple = "dxil-pc-shadermodel6.7-library"
6 ;CHECK: ; Combined Shader Flags for Module
7 ;CHECK-NEXT: ; Shader Flags Value: 0x00000004
9 ;CHECK-NEXT: ; Note: shader requires additional functionality:
10 ;CHECK-NEXT: ; Double-precision floating point
11 ;CHECK-NEXT: ; Note: extra DXIL module flags:
13 ;CHECK-NEXT: ; Shader Flags for Module Functions
14 ;CHECK-NEXT: ; Function add : 0x00000004
16 define double @add(double %a, double %b) #0 {
17 %sum = fadd double %a, %b
21 attributes #0 = { convergent norecurse nounwind "hlsl.export"}
26 ; DXC-NEXT: Doubles: true
27 ; DXC-NOT: {{[A-Za-z]+: +true}}
28 ; DXC: NextUnusedBit: false