52 lines · plain
1## Tests that the copied DXContainer correctly has the specified headers2## removed.3 4# RUN: yaml2obj %s -o %t5# RUN: llvm-objcopy --remove-section=FKE1 --remove-section=FKE4 %t %t.out6# RUN: obj2yaml %t.out | FileCheck %s7 8--- !dxcontainer9Header:10 Hash: [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,11 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]12 Version:13 Major: 114 Minor: 015## FileSize = 1996 - 8 (FKE1 content) - 1688 (FKE4 content)16## - 8 (2 part offsets) - 16 (2 part headers)17## = 27618# CHECK: FileSize: 27619 FileSize: 199620# CHECK-NEXT: PartCount: 521 PartCount: 722# CHECK-NEXT: PartOffsets: [ 52, 68, 84, 212, 240 ]23 PartOffsets: [ 60, 76, 92, 108, 236, 1932, 1960 ]24Parts:25# CHECK-NEXT: Parts26# CHECK-NOT: FKE127# CHECK-NOT: FKE428 - Name: FKE029 Size: 830 - Name: FKE131 Size: 832 - Name: FKE233 Size: 834 - Name: FKE335 Size: 12036 - Name: FKE437 Size: 168838 - Name: FKE539 Size: 2040 - Name: DXIL41 Size: 2842 Program:43 MajorVersion: 644 MinorVersion: 545 ShaderKind: 546 Size: 847 DXILMajorVersion: 148 DXILMinorVersion: 549 DXILSize: 450 DXIL: [ 0x42, 0x43, 0xC0, 0xDE, ]51...52