42 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.psv0 = private constant [80 x i8] c"{{.*}}", section "PSV0", align 46 7define void @cs_main() #0 {8entry:9 ret void10}11 12attributes #0 = { "hlsl.numthreads"="8,8,1" "hlsl.shader"="compute" }13 14!dx.valver = !{!0}15 16!0 = !{i32 1, i32 7}17 18; DXC: - Name: PSV019; DXC-NEXT: Size: 8020; DXC-NEXT: PSVInfo:21; DXC-NEXT: Version: 322; DXC-NEXT: ShaderStage: 523; DXC-NEXT: MinimumWaveLaneCount: 024; DXC-NEXT: MaximumWaveLaneCount: 429496729525; DXC-NEXT: UsesViewID: 026; DXC-NEXT: SigInputVectors: 027; DXC-NEXT: SigOutputVectors: [ 0, 0, 0, 0 ]28; DXC-NEXT: NumThreadsX: 829; DXC-NEXT: NumThreadsY: 830; DXC-NEXT: NumThreadsZ: 131; DXC-NEXT: EntryName: cs_main32; DXC-NEXT: ResourceStride: 2433; DXC-NEXT: Resources: []34; DXC-NEXT: SigInputElements: []35; DXC-NEXT: SigOutputElements: []36; DXC-NEXT: SigPatchOrPrimElements: []37; DXC-NEXT: InputOutputMap:38; DXC-NEXT: - [ ]39; DXC-NEXT: - [ ]40; DXC-NEXT: - [ ]41; DXC-NEXT: - [ ]42