Unnamed: 0
int64 0
0
| repo_id
stringlengths 5
186
| file_path
stringlengths 15
223
| content
stringlengths 1
32.8M
⌀ |
---|---|---|---|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Object/archive-error-tmp.txt | Test that no temporary file is left behind on error.
RUN: rm -rf %t
RUN: mkdir %t
RUN: not llvm-ar rc %t/foo.a .
RUN: rmdir %t
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Object/coff-archive-short.test | #
# Check if the index is appearing properly in the output file
#
# coff_archive_short.lib does not have member whose name is longer
# than 15 characters, thus, unlike coff_archive.lib, it has no string
# table as the third member.
#
RUN: llvm-nm -a --numeric-sort -M %p/Inputs/coff_archive_short.lib | FileCheck -check-prefix=CHECKIDX %s
CHECKIDX: Archive map
CHECKIDX: _shortfn1 in short1.obj
CHECKIDX: _shortfn2 in short2.obj
CHECKIDX: short1.obj:
CHECKIDX: 00000000 N .debug$S
CHECKIDX: 00000000 i .drectve
CHECKIDX: 00000000 t .text
CHECKIDX: 00000000 T _shortfn1
CHECKIDX: 00000001 a @feat.00
CHECKIDX: 00aa9d1b a @comp.id
CHECKIDX: short2.obj:
CHECKIDX: 00000000 N .debug$S
CHECKIDX: 00000000 i .drectve
CHECKIDX: 00000000 t .text
CHECKIDX: 00000000 T _shortfn2
CHECKIDX: 00000001 a @feat.00
CHECKIDX: 00aa9d1b a @comp.id
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml | # RUN: yaml2obj -format=elf %s | llvm-readobj -file-headers - | FileCheck %s
!ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [ EF_MIPS_NOREORDER, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2,
EF_MIPS_NAN2008 ]
# CHECK: Format: ELF32-mips
# CHECK: Arch: mipsel
# CHECK: Machine: EM_MIPS
# CHECK: Flags [ (0x70001401)
# CHECK-NEXT: EF_MIPS_ABI_O32 (0x1000)
# CHECK-NEXT: EF_MIPS_ARCH_32R2 (0x70000000)
# CHECK-NEXT: EF_MIPS_NAN2008 (0x400)
# CHECK-NEXT: EF_MIPS_NOREORDER (0x1)
# CHECK-NEXT: ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Object/yaml2obj-elf-multi-doc.test | # RUN: yaml2obj -format=elf -docnum=1 %s \
# RUN: | llvm-readobj -symbols - | FileCheck -check-prefix=DOC1 %s
# RUN: yaml2obj -format=elf -docnum=2 %s \
# RUN: | llvm-readobj -symbols - | FileCheck -check-prefix=DOC2 %s
# RUN: not yaml2obj -format=elf -docnum=3 %s 2>&1 \
# RUN: | FileCheck -check-prefix=DOC3 %s
# DOC1: Name: T1 (1)
# DOC2: Name: T2 (1)
# DOC3: yaml2obj: Cannot find the 3rd document
--- !ELF
FileHeader: !FileHeader
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_CPIC]
Sections:
- Name: .text
Type: SHT_PROGBITS
Content: "0000000000000000"
AddressAlign: 16
Flags: [SHF_EXECINSTR, SHF_ALLOC]
Symbols:
Global:
- Name: T1
Section: .text
Type: STT_FUNC
Value: 0x0
Size: 8
--- !ELF
FileHeader: !FileHeader
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Sections:
- Name: .text
Type: SHT_PROGBITS
Content: "00000000"
AddressAlign: 16
Flags: [SHF_EXECINSTR, SHF_ALLOC]
Symbols:
Global:
- Name: T2
Section: .text
Type: STT_FUNC
Value: 0x0
Size: 4
...
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Object/objdump-sectionheaders.test | ; RUN: llvm-objdump -h %p/Inputs/trivial-object-test.elf-x86-64 \
; RUN: | FileCheck %s
; To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
; results in a way that we don't emulate.
; CHECK: Sections:
; CHECK: Idx Name Size Address Type
; CHECK: 0 00000000 0000000000000000
; CHECK: 1 .text 00000026 0000000000000000 TEXT DATA
; CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA
; CHECK: 3 .note.GNU-stack 00000000 0000000000000033
; CHECK: 4 .rela.text 00000048 0000000000000038
; CHECK: 5 .symtab 000000c0 0000000000000080
; CHECK: 6 .strtab 00000033 0000000000000140
; CHECK: 7 .shstrtab 0000004b 0000000000000173
|
0 | repos/DirectXShaderCompiler/test/Object | repos/DirectXShaderCompiler/test/Object/Inputs/elfver.S | # Compile with:
# ARGS="-shared -nostdlib -Wl,--version-script=elfver.script"
# clang $ARGS -m32 elfver.S -lc -o elf-versioning-test.i386
# clang $ARGS -m64 elfver.S -lc -o elf-versioning-test.x86_64
# Also, strip off non-dynamic symbols:
# strip elf-versioning-test.i386
# strip elf-versioning-test.x86_64
#ifdef __i386__
.symver _puts, puts@GLIBC_2.0
#else
.symver _puts, puts@GLIBC_2.2.5
#endif
call _puts@PLT
.symver foo1, foo@VER1
.globl foo1
.type foo1, @function
foo1:
ret
.symver foo2, foo@@VER2
.globl foo2
.type foo2, @function
foo2:
ret
.globl unversioned_define
.type unversioned_define, @function
unversioned_define:
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/ELF/LE32.yaml | !ELF
FileHeader: !FileHeader
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_386
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/ELF/LE64.yaml | !ELF
FileHeader: !FileHeader
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/ELF/BE64.yaml | !ELF
FileHeader: !FileHeader
Class: ELFCLASS64
Data: ELFDATA2MSB
Type: ET_EXEC
Machine: EM_PPC64
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/ELF/BE32.yaml | !ELF
FileHeader: !FileHeader
Class: ELFCLASS32
Data: ELFDATA2MSB
Type: ET_EXEC
Machine: EM_PPC
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/long-section-name.yaml | ---
header:
Machine: IMAGE_FILE_MACHINE_I386
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_LOCAL_SYMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ]
sections:
- Name: .long_section_name
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
Alignment: 1
SectionData: ''
symbols:
...
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/long-file-symbol.yaml | ---
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED ]
sections:
symbols:
- Name: .file
Value: 0
SectionNumber: 65534
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_FILE
File: filename_with_22_chars
...
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/weak-external.yaml | ---
header:
Machine: IMAGE_FILE_MACHINE_I386
Characteristics: [ IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ]
sections:
- Name: .text
Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
Alignment: 4
SectionData: 5589E583E4F0E800000000B800000000C9C39090
Relocations:
- VirtualAddress: 7
SymbolName: ___main
Type: IMAGE_REL_I386_REL32
symbols:
- Name: .file
Value: 0
SectionNumber: 65534
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_FILE
File: 'file'
- Name: .text
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 18
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: ___main
Value: 0
SectionNumber: 0
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_FUNCTION
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
WeakExternal:
TagIndex: 0
Characteristics: 0
...
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/section-aux-symbol.yaml | ---
header:
Machine: IMAGE_FILE_MACHINE_I386
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE, IMAGE_FILE_DEBUG_STRIPPED ]
sections:
- Name: .CRT
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
Alignment: 4
SectionData: 0000000030114000000000000000000010104000401640000000000000000000B015400060154000000000000000000000000000
symbols:
- Name: '.CRT$XCAA'
Value: 4
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIAA'
Value: 16
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLD'
Value: 36
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLC'
Value: 32
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XDZ'
Value: 48
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XDA'
Value: 44
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLZ'
Value: 40
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLA'
Value: 28
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIC'
Value: 20
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XCZ'
Value: 8
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XCA'
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIZ'
Value: 24
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIA'
Value: 12
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
...
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/x86-64.yaml | header: !Header
Machine: IMAGE_FILE_MACHINE_AMD64 # (0x8664)
sections:
- !Section
Name: .text
Alignment: 16
Characteristics: [IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ, ] # 0x60500020
SectionData: !hex "4883EC28C744242400000000488D0D00000000E800000000E8000000008B4424244883C428C3" # |H..(.D$$....H.................D$$H..(.|
Relocations:
- !Relocation
VirtualAddress: 0xf
SymbolName: L.str
Type: IMAGE_REL_AMD64_REL32
- !Relocation
VirtualAddress: 0x14
SymbolName: puts
Type: IMAGE_REL_AMD64_REL32
- !Relocation
VirtualAddress: 0x19
SymbolName: SomeOtherFunction
Type: IMAGE_REL_AMD64_REL32
- !Section
Name: .data
Alignment: 1
Characteristics: [IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE, ] # 0xc0100040
SectionData: !hex "48656C6C6F20576F726C642100" # |Hello World!.|
- !Section
Name: '.CRT$XCU'
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
Alignment: 8
SectionData: !hex "0000000000000000"
Relocations:
- VirtualAddress: 0
SymbolName: '??__Ex@@YAXXZ'
Type: IMAGE_REL_AMD64_ADDR64
symbols:
- !Symbol
Name: .text
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
SectionDefinition:
Length: 38
NumberOfRelocations: 3
NumberOfLinenumbers: 0
CheckSum: 0
Number: 1
- !Symbol
Name: .data
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
SectionDefinition:
Length: 13
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 2
- !Symbol
Name: main
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_FUNCTION # (2)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
- !Symbol
Name: L.str
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
- !Symbol
Name: puts
Value: 0
SectionNumber: 0
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
- !Symbol
Name: SomeOtherFunction
Value: 0
SectionNumber: 0
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
- !Symbol
Name: '??__Ex@@YAXXZ'
Value: 0
SectionNumber: 3
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_FUNCTION # (2)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
|
0 | repos/DirectXShaderCompiler/test/Object/Inputs | repos/DirectXShaderCompiler/test/Object/Inputs/COFF/i386.yaml | header: !Header
Machine: IMAGE_FILE_MACHINE_I386 # (0x14c)
Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
sections:
- !Section
Name: .text
Alignment: 16
Characteristics: [IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ, ] # 0x60500020
SectionData: !hex "83EC0CC744240800000000C7042400000000E800000000E8000000008B44240883C40CC3" # |....D$.......$...............D$.....|
Relocations:
- !Relocation
VirtualAddress: 0xe
SymbolName: L_.str
Type: IMAGE_REL_I386_DIR32
- !Relocation
VirtualAddress: 0x13
SymbolName: _puts
Type: IMAGE_REL_I386_REL32
- !Relocation
VirtualAddress: 0x18
SymbolName: _SomeOtherFunction
Type: IMAGE_REL_I386_REL32
- !Section
Name: .data
Alignment: 1
Characteristics: [IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE, ] # 0xc0100040
SectionData: !hex "48656C6C6F20576F726C642100" # |Hello World!.|
symbols:
- !Symbol
Name: .text
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
SectionDefinition:
Length: 36
NumberOfRelocations: 3
NumberOfLinenumbers: 0
CheckSum: 0
Number: 1
- !Symbol
Name: .data
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
SectionDefinition:
Length: 13
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 2
- !Symbol
Name: _main
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_FUNCTION # (2)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
- !Symbol
Name: L_.str
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_STATIC # (3)
- !Symbol
Name: _puts
Value: 0
SectionNumber: 0
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
- !Symbol
Name: _SomeOtherFunction
Value: 0
SectionNumber: 0
SimpleType: IMAGE_SYM_TYPE_NULL # (0)
ComplexType: IMAGE_SYM_DTYPE_NULL # (0)
StorageClass: IMAGE_SYM_CLASS_EXTERNAL # (2)
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Bitcode/padding.test | Test that both llvm-dis (uses a data streamer) and opt (no data streamer)
handle a .bc file with any padding.
A file padded with '\n' can be produced under a peculiar situation:
* A .bc is produced os OS X, but without a darwin triple, so it has no
wrapper.
* It is included in a .a archive
* ranlib is ran on that archive. It will pad the members to make them multiple
of 8 bytes.
and there is no reason to not handle the general case.
RUN: llvm-dis -disable-output %p/Inputs/padding.bc
RUN: opt -disable-output %p/Inputs/padding.bc
RUN: llvm-dis -disable-output %p/Inputs/padding-garbage.bc
RUN: opt -disable-output %p/Inputs/padding-garbage.bc
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Bitcode/invalid.test | RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-ENCODING %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-ABBREV %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \
RUN: FileCheck --check-prefix=UNEXPECTED-EOF %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-ABBREV-NUMBER %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-TYPE-TABLE-FORWARD-REF %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-BITWIDTH %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-align.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-ALIGN %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-gep-mismatched-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-GEP %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-mismatched-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-LOAD %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-gep-operator-mismatched-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-GEP-OPERATOR %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-mismatched-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-CALL %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-CALL %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-mismatched-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-INVOKE %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-non-function-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-INVOKE %s
INVALID-ENCODING: Invalid encoding
BAD-ABBREV: Abbreviation starts with an Array or a Blob
UNEXPECTED-EOF: Unexpected end of file
BAD-ABBREV-NUMBER: Invalid abbrev number
BAD-TYPE-TABLE-FORWARD-REF: Invalid TYPE table: Only named structs can be forward referenced
BAD-BITWIDTH: Bitwidth for integer type out of range
BAD-ALIGN: Invalid alignment value
MISMATCHED-EXPLICIT-GEP: Explicit gep type does not match pointee type of pointer operand
MISMATCHED-EXPLICIT-LOAD: Explicit load/store type does not match pointee type of pointer operand
MISMATCHED-EXPLICIT-GEP-OPERATOR: Explicit gep operator type does not match pointee type of pointer operand
MISMATCHED-EXPLICIT-CALL: Explicit call type does not match pointee type of callee operand
NON-FUNCTION-EXPLICIT-CALL: Explicit call type is not a function type
MISMATCHED-EXPLICIT-INVOKE: Explicit invoke type does not match pointee type of callee operand
NON-FUNCTION-EXPLICIT-INVOKE: Explicit invoke type is not a function type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-array-idx.bc 2>&1 | \
RUN: FileCheck --check-prefix=EXTRACT-ARRAY %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-struct-idx.bc 2>&1 | \
RUN: FileCheck --check-prefix=EXTRACT-STRUCT %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-too-many-idxs.bc 2>&1 | \
RUN: FileCheck --check-prefix=EXTRACT-IDXS %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-array-idx.bc 2>&1 | \
RUN: FileCheck --check-prefix=INSERT-ARRAY %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-struct-idx.bc 2>&1 | \
RUN: FileCheck --check-prefix=INSERT-STRUCT %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-too-many-idxs.bc 2>&1 | \
RUN: FileCheck --check-prefix=INSERT-IDXS %s
EXTRACT-ARRAY: EXTRACTVAL: Invalid array index
EXTRACT-STRUCT: EXTRACTVAL: Invalid struct index
EXTRACT-IDXS: EXTRACTVAL: Invalid type
INSERT-ARRAY: INSERTVAL: Invalid array index
INSERT-STRUCT: INSERTVAL: Invalid struct index
INSERT-IDXS: INSERTVAL: Invalid type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-proper-module.bc 2>&1 | \
RUN: FileCheck --check-prefix=NO-MODULE %s
NO-MODULE: Malformed IR file
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fp-shift.bc 2>&1 | \
RUN: FileCheck --check-prefix=FP-SHIFT %s
FP-SHIFT: Invalid record
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-vbr-size-too-big.bc 2>&1 | \
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc 2>&1 | \
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
HUGE-ABBREV-OP: Fixed or VBR abbrev record with size > MaxChunkData
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=ARRAY-TYPE %s
ARRAY-TYPE: Array element type can't be an Array or a Blob
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-extractelement.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-TYPE %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-insertelement.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-TYPE %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-shufflevector.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-TYPE %s
INVALID-TYPE: Invalid type for value
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch.bc 2>&1 | \
RUN: FileCheck --check-prefix=FWDREF-TYPE %s
FWDREF-TYPE: Invalid record
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch-2.bc 2>&1 | \
RUN: FileCheck --check-prefix=FWDREF-TYPE-MISMATCH %s
FWDREF-TYPE-MISMATCH: Type mismatch in constant table!
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-element-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-element-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pointer-element-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
ELEMENT-TYPE: Invalid type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-op-not-2nd-to-last.bc 2>&1 | \
RUN: FileCheck --check-prefix=ARRAY-NOT-2LAST %s
ARRAY-NOT-2LAST: Array op not second to last
RUN: not llvm-dis -disable-output %p/Inputs/invalid-too-big-fwdref.bc 2>&1 | \
RUN: FileCheck --check-prefix=HUGE-FWDREF %s
HUGE-FWDREF: Invalid record
RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-pointer-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=LOAD-BAD-TYPE %s
LOAD-BAD-TYPE: Load/Store operand is not a pointer type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-GCTable-overflow.bc 2>&1 | \
RUN: FileCheck --check-prefix=GCTABLE-OFLOW %s
GCTABLE-OFLOW: Invalid ID
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insert-0-indices.bc 2>&1 | \
RUN: FileCheck --check-prefix=INSERT-0-IDXS %s
INSERT-0-IDXS: INSERTVAL: Invalid instruction with 0 indices
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extract-0-indices.bc 2>&1 | \
RUN: FileCheck --check-prefix=EXTRACT-0-IDXS %s
EXTRACT-0-IDXS: EXTRACTVAL: Invalid instruction with 0 indices
RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-ptr-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=BAD-LOAD-PTR-TYPE %s
BAD-LOAD-PTR-TYPE: Cannot load/store from pointer
RUN: not llvm-dis -disable-output %p/Inputs/invalid-inserted-value-type-mismatch.bc 2>&1 | \
RUN: FileCheck --check-prefix=INSERT-TYPE-MISMATCH %s
INSERT-TYPE-MISMATCH: Inserted value type doesn't match aggregate type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-code-len-width.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-CODELENWIDTH %s
INVALID-CODELENWIDTH: Malformed block
RUN: not llvm-dis -disable-output %p/Inputs/invalid-function-argument-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-ARGUMENT-TYPE %s
INVALID-ARGUMENT-TYPE: Invalid function argument type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fixme-streaming-blob.bc 2>&1 | \
RUN: FileCheck --check-prefix=STREAMING-BLOB %s
STREAMING-BLOB: getPointer in streaming memory objects not allowed
RUN: not llvm-dis -disable-output %p/Inputs/invalid-function-comdat-id.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-FCOMDAT-ID %s
INVALID-FCOMDAT-ID: Invalid function comdat ID
RUN: not llvm-dis -disable-output %p/Inputs/invalid-global-var-comdat-id.bc 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-GVCOMDAT-ID %s
INVALID-GVCOMDAT-ID: Invalid global variable comdat ID
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-no-operands.bc 2>&1 | \
RUN: FileCheck --check-prefix=ABBREV-NO-OPS %s
ABBREV-NO-OPS: Abbrev record with no operands
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-operand-encoding.bc 2>&1 | \
RUN: FileCheck --check-prefix=ARRAY-OP-ENC %s
ARRAY-OP-ENC: Array element type has to be an encoding of a type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-metadata-not-followed-named-node.bc 2>&1 | \
RUN: FileCheck --check-prefix=META-NOT-FOLLOWED-BY-NAMED-META %s
META-NOT-FOLLOWED-BY-NAMED-META: METADATA_NAME not followed by METADATA_NAMED_NODE
RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-length.bc 2>&1 | \
RUN: FileCheck --check-prefix=VECTOR-LENGTH %s
VECTOR-LENGTH: Invalid vector length
RUN: not llvm-dis -disable-output %p/Inputs/invalid-alias-type-mismatch.bc 2>&1 | \
RUN: FileCheck --check-prefix=ALIAS-TYPE-MISMATCH %s
ALIAS-TYPE-MISMATCH: Alias and aliasee types don't match
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Bitcode/PR23310.test | RUN: llvm-dis -disable-output %p/Inputs/PR23310.bc
|
0 | repos/DirectXShaderCompiler/test/LTO/X86 | repos/DirectXShaderCompiler/test/LTO/X86/Inputs/bcsection.macho.s | .section .llvmbc,.llvmbc
.incbin "bcsection.bc"
|
0 | repos/DirectXShaderCompiler/test/LTO/X86 | repos/DirectXShaderCompiler/test/LTO/X86/Inputs/bcsection.s | .section .llvmbc
.incbin "bcsection.bc"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/Unit/lit.site.cfg.in | import sys
## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.llvm_build_mode = "@LLVM_BUILD_MODE@"
config.enable_shared = @ENABLE_SHARED@
config.shlibdir = "@SHLIBDIR@"
# Support substitution of the tools_dir and build_mode with user parameters.
# This is used when we can't determine the tool dir at configuration time.
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
except KeyError:
e = sys.exc_info()[1]
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
# Let the main config do the real work.
lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/Unit/lit.cfg")
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-07a.test | # RUN: yaml-bench -canonical %s
# Private application:
!foo "bar"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-17.test | # RUN: yaml-bench -canonical %s
unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hexesc: "\x13\x10 is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # not a ''comment''.'
tie-fighter: '|\-*-/|'
# CHECK: !!str "Sosa did fine.\u263A"
# CHECK: !!str "\b1998\t1999\t2000\n"
# CHECK: !!str "\x13\x10 is \r\n"
# CHECK: !!str "\"Howdy!\" he cried."
# CHECK: !!str " # not a 'comment'."
# CHECK: !!str "|\\-*-/|"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-31.test | # RUN: yaml-bench -canonical %s
>
folded
line
next
line
* bullet
* list
last
line
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-08.test | # RUN: yaml-bench -canonical %s
'as space
trimmed
specific
none'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/duplicate-value-key.former-loader-error.test | # RUN: yaml-bench -canonical %s
---
=: 1
foo: bar
=: 2
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-str-ascii.test | # RUN: yaml-bench -canonical %s
--- !!str "ascii string"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-bool.test | # RUN: yaml-bench -canonical %s
canonical: yes
answer: NO
logical: True
option: on
but:
y: is a string
n: is a string
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-21.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
- |
text
- >
text
text
- |1
text
# CHECK: 8:2: error: A text line is less indented than the block scalar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-float.test | # RUN: yaml-bench -canonical %s
canonical: 6.8523015e+5
exponential: 685.230_15e+03
fixed: 685_230.15
sexagesimal: 190:20:30.15
negative infinity: -.inf
not a number: .NaN
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-02.test | # RUN: yaml-bench -canonical %s
[
"double
quoted", 'single
quoted',
plain
text, [ nested ],
single: pair ,
]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/negative-float-bug.test | # RUN: yaml-bench -canonical %s
-1.0
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-14.test | # RUN: yaml-bench -canonical %s
"Fun with \\
\" \a \b \e \f \
\n \r \t \v \0 \
\ \_ \N \L \P \
\x41 \u0041 \U00000041"
# CHECK: !!str "Fun with \\\n\" \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A A"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-13.test | # RUN: yaml-bench -canonical %s
! "First document"
---
!foo "No directives"
%TAG ! !foo
---
!bar "With directives"
%YAML 1.1
---
!baz "Reset settings"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-12b.test | # RUN: yaml-bench -canonical %s
# Explicit document. Root
# scalar (literal) node.
--- |
Text content
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-03.test | # RUN: yaml-bench -canonical %s
- "
last"
- "
last"
- " first
last"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-01.test | # RUN: yaml-bench -canonical %s
- [ inner, inner, ]
- [inner,last]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-10.test | # RUN: yaml-bench -canonical %s
---
hr:
- Mark McGwire
# Following node labeled SS
- &SS Sammy Sosa
rbi:
- *SS # Subsequent occurrence
- Ken Griffey
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-06.test | # RUN: yaml-bench -canonical %s
- { inner : entry , also: inner , }
- {inner: entry,last : entry}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-16.test | # RUN: yaml-bench -canonical %s
# Tabs are confusing:
# as space/trimmed/specific/none
as space
trimmed
specific
none
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-23.test | # RUN: yaml-bench -canonical %s
# Strip
# Comments:
strip: |-
# text
# Clip
# comments:
clip: |
# text
# Keep
# comments:
keep: |+
# text
# Trail
# comments.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-29.test | # RUN: yaml-bench -canonical %s
> # Simple folded scalar
folded
text
lines
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-06.test | # RUN: yaml-bench -canonical %s
plain: text
lines
quoted: "text
lines"
block: |
text
lines
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-null.test | # RUN: yaml-bench -canonical %s
# A document may be null.
---
---
# This mapping has four keys,
# one has a value.
empty:
canonical: ~
english: null
~: null key
---
# This sequence has five
# entries, two have values.
sparse:
- ~
- 2nd entry
-
- 4th entry
- Null
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-11.test | # RUN: yaml-bench -canonical %s
- 'first
'
- 'first
last'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-pairs.test | # RUN: yaml-bench -canonical %s
# Explicitly typed pairs.
Block tasks: !!pairs
- meeting: with team.
- meeting: with boss.
- break: lunch.
- meeting: with client.
Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-26.test | # RUN: yaml-bench -canonical %s
# ordered maps are represented as
# a sequence of mappings, with
# each mapping having one key
--- !!omap
- Mark McGwire: 65
- Sammy Sosa: 63
- Ken Griffy: 58
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-19.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "literal\n"
# CHECK: !!str "folded\n"
- |
literal
- >
folded
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-02-utf8.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
# Invalid use of BOM
# inside a
# document.
# CHECK: error
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-timestamp.test | # RUN: yaml-bench -canonical %s
canonical: 2001-12-15T02:59:43.1Z
valid iso8601: 2001-12-14t21:59:43.10-05:00
space separated: 2001-12-14 21:59:43.10 -5
no time zone (Z): 2001-12-15 2:59:43.10
date (00:00:00Z): 2002-12-14
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-14.test | # RUN: yaml-bench -canonical %s
---
Mark McGwire's
year was crippled
by a knee injury.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-03.test | # RUN: yaml-bench -canonical %s
block: # Block
# sequence
- one
- two : three
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-omap.test | # RUN: yaml-bench -canonical %s
# Explicitly typed ordered map (dictionary).
Bestiary: !!omap
- aardvark: African pig-like ant eater. Ugly.
- anteater: South-American ant eater. Two species.
- anaconda: South-American constrictor snake. Scaly.
# Etc.
# Flow style
Numbers: !!omap [ one: 1, two: 2, three : 3 ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-12.test | # RUN: yaml-bench -canonical %s
# Outside flow collection:
- ::std::vector
- Up, up, and away!
- -123
# Inside flow collection:
- [ '::std::vector',
"Up, up, and away!",
-123 ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-27.test | # RUN: yaml-bench -canonical %s
--- !<tag:clarkevans.com,2002:invoice>
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
state : MI
postal : 48046
ship-to: *id001
product:
- sku : BL394D
quantity : 4
description : Basketball
price : 450.00
- sku : BL4438H
quantity : 1
description : Super Hoop
price : 2392.00
tax : 251.42
total: 4443.52
comments:
Late afternoon is best.
Backup contact is Nancy
Billsmer @ 338-4338.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-05.test | # RUN: yaml-bench -canonical %s
# Comment only.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-23.test | # RUN: yaml-bench -canonical %s
---
not-date: !!str 2002-04-28
picture: !!binary |
R0lGODlhDAAMAIQAAP//9/X
17unp5WZmZgAAAOfn515eXv
Pz7Y6OjuDg4J+fn5OTk6enp
56enmleECcgggoBADs=
application specific tag: !something |
The semantics of the tag
above may be different for
different documents.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-15.test | # RUN: yaml-bench -canonical %s
>
Sammy Sosa completed another
fine season with great stats.
63 Home Runs
0.288 Batting Average
What a year!
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-10.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
commercial-at: @text
grave-accent: `text
# CHECK: error
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/timestamp-bugs.test | # RUN: yaml-bench -canonical %s
- 2001-12-14 21:59:43.10 -5:30
- 2001-12-14 21:59:43.10 +5:30
- 2001-12-14 21:59:43.00101
- 2001-12-14 21:59:43+1
- 2001-12-14 21:59:43-1:30
- 2005-07-08 17:35:04.517600
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-02.test | # RUN: yaml-bench -canonical %s
First occurrence: &anchor Value
Second occurrence: *anchor
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-05.test | # RUN: yaml-bench -canonical %s
- "first
"
- "first
last"
- "first
inner
\ last"
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/float.test | # RUN: yaml-bench -canonical %s
- 6.8523015e+5
- 685.230_15e+03
- 685_230.15
- 190:20:30.15
- -.inf
- .NaN
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/utf8.test | # RUN: yaml-bench -canonical %s
--- UTF-8
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-02.test | # RUN: yaml-bench -canonical %s
# Comment
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-22.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "text"
# CHECK: !!str "text\n"
# CHECK: !!str "text\n\n"
strip: |-
text
clip: |
text
keep: |+
text
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-25.test | # RUN: yaml-bench -canonical %s
# sets are represented as a
# mapping where each key is
# associated with the empty string
--- !!set
? Mark McGwire
? Sammy Sosa
? Ken Griff
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-15.test | # RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
Bad escapes:
"\c
\xq-"
# CHECK: error
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/sloppy-indentation.test | # RUN: yaml-bench -canonical %s
---
in the block context:
indentation should be kept: {
but in the flow context: [
it may be violated]
}
---
the parser does not require scalars
to be indented with at least one space
...
---
"the parser does not require scalars
to be indented with at least one space"
---
foo:
bar: 'quoted scalars
may not adhere indentation'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-05-06.test | # RUN: yaml-bench -canonical %s
anchored: !local &anchor value
alias: *anchor
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-09.test | # RUN: yaml-bench -canonical %s
{
key : value,
empty: # empty value↓
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-20.test | # RUN: yaml-bench -canonical %s
canonical: 1.23015e+3
exponential: 12.3015e+02
sexagesimal: 20:30.15
fixed: 1,230.15
negative infinity: -.inf
not a number: .NaN
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/yaml.test | # RUN: yaml-bench -canonical %s | FileCheck %s
- !!yaml '!'
- !!yaml '&'
- !!yaml '*'
# CHECK: !!seq [
# CHECK: !!yaml "!",
# CHECK: !!yaml "&",
# CHECK: !!yaml "*",
# CHECK: ]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test | # RUN: yaml-bench -canonical %s
? |-
foo
: |-
bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-13.test | # RUN: yaml-bench -canonical %s
# ASCII Art
--- |
\//||\/||
// || ||__
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-24.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: ? !!str "strip"
# CHECK: : !!str ""
# CHECK: ? !!str "clip"
# CHECK: : !!str ""
# CHECK: ? !!str "keep"
# CHECK: : !!str "\n"
strip: >-
clip: >
keep: |+
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-09.test | # RUN: yaml-bench -canonical %s
- '
last'
- '
last'
- ' first
last'
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-01.test | # RUN: yaml-bench -canonical %s
!!str &a1 "foo" : !!str bar
&a2 baz : *a1
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-04.test | # RUN: yaml-bench -canonical %s
block:
- one
-
- two
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-22.test | # RUN: yaml-bench -canonical %s
canonical: 2001-12-15T02:59:43.1Z
iso8601: 2001-12-14t21:59:43.10-05:00
spaced: 2001-12-14 21:59:43.10 -5
date: 2002-12-14
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-07.test | # RUN: yaml-bench -canonical %s
{
? : value, # Empty key
? explicit
key: value,
simple key : value,
[ collection, simple, key ]: value
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/more-floats.test | # RUN: yaml-bench -canonical %s
[0.0, +1.0, -1.0, +.inf, -.inf, .nan, .nan]
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-04.test | # RUN: yaml-bench -canonical %s
key: # Comment
# lines
value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-14.test | # RUN: yaml-bench -canonical %s
- "flow in block"
- >
Block scalar
- !!map # Block collection
foo : bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-28.test | # RUN: yaml-bench -canonical %s
---
Time: 2001-11-23 15:01:42 -5
User: ed
Warning:
This is an error message
for the log file
---
Time: 2001-11-23 15:02:31 -5
User: ed
Warning:
A slightly different error
message.
---
Date: 2001-11-23 15:03:17 -5
User: ed
Fatal:
Unknown variable "bar"
Stack:
- file: TopClass.py
line: 23
code: |
x = MoreObject("345\n")
- file: MoreClass.py
line: 58
code: |-
foo = bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-12a.test | # RUN: yaml-bench -canonical %s
# Implicit document. Root
# collection (mapping) node.
foo : bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-09-18.test | # RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "literal\n"
# CHECK: !!str " folded\n"
# CHECK: !!str "keep\n\n"
# CHECK: !!str " strip"
- | # Just the style
literal
- >1 # Indentation indicator
folded
- |+ # Chomping indicator
keep
- >-1 # Both indicators
strip
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/duplicate-merge-key.former-loader-error.test | # RUN: yaml-bench -canonical %s
---
<<: {x: 1, y: 2}
foo: bar
<<: {z: 3, t: 4}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-07-10.test | # RUN: yaml-bench -canonical %s
"Root flow
scalar"
--- !!str >
Root block
scalar
---
# Root collection:
foo : bar
... # Is optional.
---
# Explicit document may be empty.
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-08-05.test | # RUN: yaml-bench -canonical %s
%TAG !o! tag:ben-kiki.org,2000:
---
- !local foo
- !!str bar
- !o!type baz
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-02-06.test | # RUN: yaml-bench -canonical %s
Mark McGwire: {hr: 65, avg: 0.278}
Sammy Sosa: {
hr: 63,
avg: 0.288
}
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/scan-line-break-bug.test | # RUN: yaml-bench -canonical %s
foo:
bar
baz
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-05.test | # RUN: yaml-bench -canonical %s
- # Empty
- |
block node
- - one # in-line
- two # sequence
- one: two # in-line
# mapping
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/int.test | # RUN: yaml-bench -canonical %s
- 685230
- +685_230
- 02472256
- 0x_0A_74_AE
- 0b1010_0111_0100_1010_1110
- 190:20:30
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-03.test | # RUN: yaml-bench -canonical %s
key: # Comment
value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-07.test | # RUN: yaml-bench -canonical %s
- foo
bar
- |-
foo
bar
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/construct-str.test | # RUN: yaml-bench -canonical %s
string: abcd
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-10-13.test | # RUN: yaml-bench -canonical %s
? explicit key # implicit value
? |
block key
: - one # explicit in-line
- two # block value
|
0 | repos/DirectXShaderCompiler/test | repos/DirectXShaderCompiler/test/YAMLParser/spec-06-08.test | # RUN: yaml-bench -canonical %s
>-
specific
trimmed
as
space
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.