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: ; Shader Flags Value: 0x00000044
7 ; CHECK: ; Note: shader requires additional functionality:
8 ; CHECK-NEXT: ; Double-precision floating point
9 ; CHECK-NEXT: ; Double-precision extensions for 11.1
10 ; CHECK-NEXT: ; Note: extra DXIL module flags:
12 define double @div(double %a, double %b) {
13 %res = fdiv double %a, %b
21 ; DXC-NEXT: Doubles: true
22 ; DXC-NOT: {{[A-Za-z]+: +true}}
23 ; DXC: DX11_1_DoubleExtensions: true
24 ; DXC-NOT: {{[A-Za-z]+: +true}}
25 ; DXC: NextUnusedBit: false