2 # RUN: not --crash llc -o - %s -mtriple=x86_64-- \
3 # RUN: -run-pass=cfi-instr-inserter 2>&1 | FileCheck %s
4 # Test that CSR being saved in multiple locations can be caught by
7 define void @inconsistentlocs() {
13 # CHECK: Different saved locations for the same CSR
14 # CHECK-NEXT: UNREACHABLE executed
15 name: inconsistentlocs
18 CFI_INSTRUCTION offset $r12, -8
19 JCC_1 %bb.2, 5, implicit undef $eflags
22 CFI_INSTRUCTION offset $r12, -16