brintos

brintos / llvm-project-archived public Read only

0
0
Text · 683 B · c95f344 Raw
18 lines · plain
1; Check for state persistence bugs in the RISC-V MC backend2; This should neither fail (in the comparison that the second object3; is bit-identical to the first) nor crash. Either failure would most4; likely indicate some state that is not properly reset in the5; appropriate ::reset method.6; RUN: llc -compile-twice -filetype=obj -mtriple=riscv64 %s -o - \7; RUN:     | llvm-objdump --section-headers - \8; RUN:     | FileCheck %s9 10; CHECK:      Sections:11; CHECK-NEXT: Idx Name              Size     VMA              Type12; CHECK-NEXT:  013; CHECK-NEXT:  1 .strtab14; CHECK-NEXT:  2 .text15; CHECK-NEXT:  3 .note.GNU-stack16; CHECK-NEXT:  4 .riscv.attributes17; CHECK-NEXT:  5 .symtab18