brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 7e56f04 Raw
43 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=DXC3 4target triple = "dxil-unknown-shadermodel6.0-compute"5 6; CHECK: @dx.rts0 = private constant [248 x i8]  c"{{.*}}", section "RTS0", align 47 8define void @main() #0 {9entry:10  ret void11}12attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }13 14 15!dx.rootsignatures = !{!2} ; list of function/root signature pairs16!2 = !{ ptr @main, !3, i32 3 } ; function, root signature17!3 = !{ !5, !6, !7, !8 } ; list of root signature elements18!5 = !{ !"StaticSampler", i32 4, i32 2, i32 3, i32 5, float 0x3FF6CCCCC0000000, i32 9, i32 3, i32 2, float -1.280000e+02, float 1.280000e+02, i32 42, i32 0, i32 0, i32 1 }19!6 = !{ !"StaticSampler", i32 4, i32 2, i32 3, i32 5, float 0x3FF6CCCCC0000000, i32 9, i32 3, i32 2, float -1.280000e+02, float 1.280000e+02, i32 43, i32 0, i32 0, i32 2 }20!7 = !{ !"StaticSampler", i32 4, i32 2, i32 3, i32 5, float 0x3FF6CCCCC0000000, i32 9, i32 3, i32 2, float -1.280000e+02, float 1.280000e+02, i32 44, i32 0, i32 0, i32 0 }21!8 = !{ !"StaticSampler", i32 4, i32 2, i32 3, i32 5, float 0x3FF6CCCCC0000000, i32 9, i32 3, i32 2, float -1.280000e+02, float 1.280000e+02, i32 45, i32 0, i32 0, i32 3 }22 23; DXC: - Name:            RTS024; DXC-NEXT:     Size:            24825; DXC-NEXT:     RootSignature:26; DXC-NEXT:       Version:         327; DXC-NEXT:       NumRootParameters: 028; DXC-NEXT:       RootParametersOffset: 2429; DXC-NEXT:       NumStaticSamplers: 430; DXC-NEXT:       StaticSamplersOffset: 2431; DXC-NEXT:       Parameters:      []32; DXC-NEXT:       Samplers:33; DXC-LABEL:         ShaderRegister:  4234; DXC:               SAMPLER_FLAG_UINT_BORDER_COLOR: true35; DXC-LABEL:         ShaderRegister:  4336; DXC:               SAMPLER_FLAG_NON_NORMALIZED_COORDINATES: true37; DXC-LABEL:         ShaderRegister:  4438; DXC-NOT:           SAMPLER_FLAG_NON_NORMALIZED_COORDINATES:39; DXC-NOT:           SAMPLER_FLAG_UINT_BORDER_COLOR:40; DXC-LABEL:         ShaderRegister:  4541; DXC:               SAMPLER_FLAG_UINT_BORDER_COLOR: true42; DXC-NEXT:          SAMPLER_FLAG_NON_NORMALIZED_COORDINATES: true43