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: 0x00000004
7 ; CHECK: ; Note: shader requires additional functionality:
8 ; CHECK-NEXT: ; Double-precision floating point
9 ; CHECK-NEXT: ; Note: extra DXIL module flags:
12 define double @add(double %a, double %b) {
13 %sum = fadd double %a, %b
20 ; DXC-NEXT: Doubles: true
21 ; DXC-NOT: {{[A-Za-z]+: +true}}
22 ; DXC: NextUnusedBit: false