brintos

brintos / llvm-project-archived public Read only

0
0
Text · 533 B · 8211f89 Raw
25 lines · plain
1# RUN: not --crash llc -o - %s -mtriple=x86_64-- \2# RUN:     -run-pass=cfi-instr-inserter 2>&1 | FileCheck %s3# Test that CSR being saved in multiple locations can be caught by4# an assertion.5--- |6  define void @inconsistentlocs() {7    bb.end:8      ret void9  }10...11---12# CHECK: LLVM ERROR: Different saved locations for the same CSR13name: inconsistentlocs14body: |15  bb.0:16    CFI_INSTRUCTION offset $r12, -817    JCC_1 %bb.2, 5, implicit undef $eflags18 19  bb.1:20    CFI_INSTRUCTION offset $r12, -1621 22  bb.2.bb.end:23    RET 024...25