brintos

brintos / llvm-project-archived public Read only

0
0
Text · 942 B · 320c775 Raw
31 lines · plain
1; RUN: opt -S --passes="print-dx-shader-flags" 2>&1 %s | FileCheck %s2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC3 4target triple = "dxil-pc-shadermodel6.7-library"5 6;CHECK: ; Combined Shader Flags for Module7;CHECK-NEXT: ; Shader Flags Value: 0x001000008;CHECK-NEXT: ;9;CHECK-NEXT: ; Note: shader requires additional functionality:10;CHECK-NEXT: ;       64-Bit integer11;CHECK-NEXT: ; Note: extra DXIL module flags:12;CHECK-NEXT: ;13;CHECK-NEXT: ; Shader Flags for Module Functions14;CHECK-NEXT: ; Function add : 0x0010000015 16define i64 @add(i64 %a, i64 %b) #0 {17  %sum = add i64 %a, %b18  ret i64 %sum19}20 21attributes #0 = { convergent norecurse nounwind "hlsl.export"}22 23; DXC: - Name:            SFI024; DXC-NEXT:     Size:            825; DXC-NEXT:     Flags:26; DXC-NOT:   {{[A-Za-z]+: +true}}27; DXC:            Int64Ops:        true28; DXC-NOT:   {{[A-Za-z]+: +true}}29; DXC:       NextUnusedBit:   false30; DXC: ...31