brintos

brintos / llvm-project-archived public Read only

0
0
Text · 805 B · 796f794 Raw
27 lines · plain
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC3target triple = "dxil-unknown-shadermodel6.0-compute"4 5; CHECK: @dx.isg1 = private constant [8 x i8] c"\00\00\00\00\08\00\00\00", section "ISG1", align 46; CHECK: @dx.osg1 = private constant [8 x i8] c"\00\00\00\00\08\00\00\00", section "OSG1", align 47 8define void @main() #0 {9entry:10  ret void11}12 13attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }14 15!dx.valver = !{!0}16 17!0 = !{i32 1, i32 7}18 19; DXC: - Name:            ISG120; DXC-NEXT:   Size:            821; DXC-NEXT:   Signature:22; DXC-NEXT:     Parameters:      []23; DXC: - Name:            OSG124; DXC-NEXT:   Size:            825; DXC-NEXT:   Signature:26; DXC-NEXT:     Parameters:      []27