brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · b8396a9 Raw
61 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objdump -d %t | FileCheck %s3 4## This CHECKs objdump's handling of wide instruction encodings, and how it5## groups the instruction bytes when disassembling.6##7## This is written in YAML because using `.byte` emits the wrong mapping8## symbols.9 10--- !ELF11FileHeader:12  Class:           ELFCLASS3213  Data:            ELFDATA2LSB14  Type:            ET_REL15  Machine:         EM_RISCV16  SectionHeaderStringTable: .strtab17Sections:18  - Name:            .text19    Type:            SHT_PROGBITS20    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]21    AddressAlign:    0x122    ContentArray:    [23      # CHECK: 011f 4523 8967 <unknown>24      0x1f, 0x01, 0x23, 0x45, 0x67, 0x89,25 26      # CHECK: 4523013f cdab8967 <unknown>27      0x3f, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd,28 29      # CHECK: 007f 4523 8967 cdab feef <unknown>30      0x7f, 0x00, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe,31 32      # CHECK: 4523107f cdab8967 badcfeef <unknown>33      0x7f, 0x10, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba,34 35      # CHECK: 207f 4523 8967 cdab feef badc 7698 <unknown>36      0x7f, 0x20, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76,37 38      # CHECK: 4523307f cdab8967 badcfeef 32547698 <unknown>39      0x7f, 0x30, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32,40 41      # CHECK: 407f 4523 8967 cdab feef badc 7698 3254 1210 <unknown>42      0x7f, 0x40, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10, 0x12,43 44      # CHECK: 4523507f cdab8967 badcfeef 32547698 56341210 <unknown>45      0x7f, 0x50, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10, 0x12, 0x34, 0x56,46 47      # CHECK: 607f 4523 8967 cdab feef badc 7698 3254 1210 5634 9a78 <unknown>48      0x7f, 0x60, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10, 0x12, 0x34, 0x56, 0x78, 0x9a,49    ]50 51  - Type:            SectionHeaderTable52    Sections:53      - Name:            .strtab54      - Name:            .symtab55      - Name:            .text56Symbols:57  - Name:    "$x"58    Section: .text59    Value:   0x060...61