brintos

brintos / llvm-project-archived public Read only

0
0
Text · 796 B · 464eb2f Raw
27 lines · plain
1## Handle invalid arch attributes.2##3## This test cannot be assembly because the test needs an invalid arch4## feature and `llvm-mc` will filter out the unrecognized arch feature.5 6# RUN: yaml2obj %s -D BITS=32 -o %t.32.o7# RUN: not llvm-objdump -d %t.32.o 2>&1 | \8# RUN:   FileCheck %s --check-prefixes=DISASM9 10# DISASM: {{.*}} invalid section length 35 at offset 0x111 12--- !ELF13FileHeader:14  Class:   ELFCLASS[[BITS]]15  Data:    ELFDATA2LSB16  Type:    ET_REL17  Machine: EM_RISCV18Sections:19  - Name:    .text20    Type:    SHT_PROGBITS21    Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]22## The content is the encoding of "mul a0, a1, a2".23    Content: 3385C50224  - Name:    .riscv.attributes25    Type:    SHT_RISCV_ATTRIBUTES26    Content: 4123000000726973637600019572763332693270305F6D3270305F783170300027