1 # RUN: llc -mtriple=x86_64-- -run-pass=finalize-isel -verify-machineinstrs -o - %s | FileCheck %s
2 # RUN: llc -mtriple=x86_64-- -passes=finalize-isel -o - %s | FileCheck %s
3 # Check that we're not copying the kill flags with the operands from the pseudo
6 define void @bar() { ret void }
8 !llvm.module.flags = !{!0}
10 !0 = !{i32 8, !"cf-protection-return", i32 1}
14 # CHECK-LABEL: name: bar
16 tracksRegLiveness: true
19 %0:gr64 = IMPLICIT_DEF
20 ; CHECK: %0:gr64 = IMPLICIT_DEF
21 EH_SjLj_LongJmp64 killed %0, 1, $noreg, 0, $noreg
24 ; CHECK-NOT: MOV64rm killed %0
26 ; CHECK-NEXT: MOV64rm %0
27 ; CHECK-NOT: MOV64rm killed %0
28 ; CHECK-NEXT: MOV64rm %0
29 ; CHECK-NOT: MOV64rm killed %0
30 ; CHECK-NEXT: MOV64rm killed %0
32 ; FIXME: Dummy PHI to set the property NoPHIs to false. PR38439.
34 %1:gr64 = PHI undef %1, %bb.2, undef %1, %bb.2