brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · af1523c Raw
68 lines · plain
1## Ensure that per-page compact encodings (indexes 127 and greater)2## appear in the output of llvm-objdump --unwind-info3## Verify that the common encodings table is full at 0x7f (127) entries.4##5## TODO(gkm): The input is a binary object file constructed from a6## large generated assembler file. For sake of expediency and7## test-time performance, I am following the unfortunate precedent8## that MachO test inputs are binary.9##10## Non-MachO tests largely use YAML inputs. As I understand it, the11## rationale is that these MachO tests were written prior to12## availability of sufficiently-expressive YAML processors.13##14## I consider YAML a submoptimal input format. Better would be15## assembler language inputs convertable to binary via llvm-mc.  In16## the case of this test however, the input is very large and the17## overhead of llvm-mc is terrible (~10s) on a debug build. Overhead18## for a release build of llvm-mc is acceptable at ~1s. It would be19## good if there were a way to prefer an installed version of llvm-mc20## to process tests in debug build trees when not testing llvm-mc21## itself.22 23# RUN: llvm-objdump --unwind-info %p/Inputs/unwind-info-excess.macho-x86_64 2>/dev/null | FileCheck %s24 25# CHECK:Contents of __unwind_info section:26# CHECK-NEXT:  Version:                                   0x127# CHECK-NEXT:  Common encodings array section offset:     0x1c28# CHECK-NEXT:  Number of common encodings in array:       0x7f29 30# CHECK:  Second level indices:31# CHECK:    Second level index[0]: offset in section32# CHECK:      Page encodings: (count = 17)33# CHECK:        encoding[127]: 0x0101000334# CHECK:        encoding[128]: 0x0101000235# CHECK:        encoding[129]: 0x0101000136# CHECK:        encoding[130]: 0x0102001d37# CHECK:        encoding[131]: 0x0102001538# CHECK:        encoding[132]: 0x0102000d39# CHECK:        encoding[133]: 0x0102001c40# CHECK:        encoding[134]: 0x0102001441# CHECK:        encoding[135]: 0x0102000c42# CHECK:        encoding[136]: 0x0102001343# CHECK:        encoding[137]: 0x0102000b44# CHECK:        encoding[138]: 0x0102002245# CHECK:        encoding[139]: 0x0102001a46# CHECK:        encoding[140]: 0x0102000a47# CHECK:        encoding[141]: 0x0102002148# CHECK:        encoding[142]: 0x0102001949# CHECK:        encoding[143]: 0x0102001150 51# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[127]=0x0101000352# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[128]=0x0101000253# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[129]=0x0101000154# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[130]=0x0102001d55# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[131]=0x0102001556# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[132]=0x0102000d57# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[133]=0x0102001c58# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[134]=0x0102001459# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[135]=0x0102000c60# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[136]=0x0102001361# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[137]=0x0102000b62# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[138]=0x0102002263# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[139]=0x0102001a64# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[140]=0x0102000a65# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[141]=0x0102002166# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[142]=0x0102001967# CHECK:      [{{[0-9]+}}]: function offset={{[x0-9a-f]+}}, encoding[143]=0x0102001168