llvm-6502/test/Object
Simon Atanasyan 84a0dc323d [YAML] Add an optional argument EnumMask to the yaml::IO::bitSetCase().
Some bit-set fields used in ELF file headers in fact contain two parts.
The first one is a regular bit-field. The second one is an enumeraion.
For example ELF header `e_flags` for MIPS target might contain the
following values:

Bit-set values:

  EF_MIPS_NOREORDER = 0x00000001
  EF_MIPS_PIC       = 0x00000002
  EF_MIPS_CPIC      = 0x00000004
  EF_MIPS_ABI2      = 0x00000020

Enumeration:

  EF_MIPS_ARCH_32   = 0x50000000
  EF_MIPS_ARCH_64   = 0x60000000
  EF_MIPS_ARCH_32R2 = 0x70000000
  EF_MIPS_ARCH_64R2 = 0x80000000

For printing bit-sets we use the `yaml::IO::bitSetCase()`. It does not
support bit-set/enumeration combinations and prints too many flags from
an enumeration part. This patch fixes this problem. New method
`yaml::IO::maskedBitSetCase()` handle "enumeration" part of bitset
defined by provided mask.

Patch reviewed by Nick Kledzik and Sean Silva.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209504 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-23 08:07:09 +00:00
..
ARM
Inputs Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS 2014-05-19 20:36:02 +00:00
Mips
X86 [yaml2obj] Follow-up to the r208228 and r208406. Remove duplicated YAML 2014-05-09 13:57:33 +00:00
ar-create.test
ar-error.test llvm-ar: Output the file we errored on. 2014-05-23 05:52:12 +00:00
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test
archive-format.test
archive-long-index.test Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files. 2014-05-09 23:57:49 +00:00
archive-move.test
archive-replace-pos.test
archive-symtab.test Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files. 2014-05-09 23:57:49 +00:00
archive-toc.test Update tests to use the new format of printing a TimeValue. It's a bit 2014-04-28 01:24:32 +00:00
archive-update.test
check_binary_output.ll
coff-archive-short.test
coff-archive.test
corrupt.test
directory.ll
elf-reloc-no-sym.test
extract.ll Update tests to use the new format of printing a TimeValue. It's a bit 2014-04-28 01:24:32 +00:00
lit.local.cfg
mangle-ir.ll
nm-archive.test
nm-error.test
nm-ir.ll
nm-shared-object.test Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files. 2014-05-09 23:57:49 +00:00
nm-trivial-object.test Update MachOObjectFile::getSymbolAddress so it returns UnknownAddressOrSize 2014-05-20 23:04:47 +00:00
nm-universal-binary.test Update MachOObjectFile::getSymbolAddress so it returns UnknownAddressOrSize 2014-05-20 23:04:47 +00:00
nm-weak-global-macho.test
obj2yaml-coff-long-file-symbol.test Object: Output .file symbols properly 2014-03-20 06:29:02 +00:00
obj2yaml-coff-weak-external.test obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
obj2yaml.test [YAML] Add an optional argument EnumMask to the yaml::IO::bitSetCase(). 2014-05-23 08:07:09 +00:00
objdump-file-header.test
objdump-private-headers.test
objdump-relocations.test
objdump-section-content.test
objdump-sectionheaders.test
objdump-symbol-table.test
readobj-elf-versioning.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj-shared-object.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj.test
relocation-executable.test
simple-archive.test
size-trivial-macho.test Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS 2014-05-19 20:36:02 +00:00
yaml2obj-elf-bits-endian.test
yaml2obj-elf-file-headers-with-e_flags.yaml [llvm-readobj] Add support for Mips specific ELF header e_flags. 2014-05-01 11:07:19 +00:00
yaml2obj-elf-file-headers.yaml
yaml2obj-elf-rel.yaml Use the new StringTableBuilder in yaml2elf 2014-04-30 19:38:09 +00:00
yaml2obj-elf-section-basic.yaml [yaml2obj][ELF] Add an optional Size field to the YAML section declaration. 2014-05-16 16:01:00 +00:00
yaml2obj-elf-section-invalid-size.yaml [yaml2obj][ELF] Add an optional Size field to the YAML section declaration. 2014-05-16 16:01:00 +00:00
yaml2obj-elf-symbol-basic.yaml Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
yaml2obj-elf-symbol-LocalGlobalWeak.yaml
yaml2obj-readobj.test [yaml2obj] Add "-o" command line option to specify an output file name. 2014-05-15 16:14:02 +00:00