xref: /llvm-project/llvm/test/CodeGen/DirectX/ContainerData/EmptySignature.ll (revision a764f49b4ae80daa5ba56cf0892bf0ebce48e2b3)
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s
2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
3target 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 4
6; CHECK: @dx.osg1 = private constant [8 x i8] c"\00\00\00\00\08\00\00\00", section "OSG1", align 4
7
8define void @main() #0 {
9entry:
10  ret void
11}
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:            ISG1
20; DXC-NEXT:   Size:            8
21; DXC-NEXT:   Signature:
22; DXC-NEXT:     Parameters:      []
23; DXC: - Name:            OSG1
24; DXC-NEXT:   Size:            8
25; DXC-NEXT:   Signature:
26; DXC-NEXT:     Parameters:      []
27