1 # RUN: llc -run-pass=livevars,twoaddressinstruction -mtriple=x86_64-- -o - %s | FileCheck %s
4 tracksRegLiveness: true
9 %0:gr32 = COPY killed $edi
10 %1:gr32 = COPY killed %0
11 %4:gr32 = XOR32ri %1, 1, implicit-def dead $eflags
14 PUSH32r killed %1, implicit-def $esp, implicit $esp
16 RET64 implicit killed $eax
20 # Verify that the DBG_VALUE instruction does not inhibit
21 # TwoAddressInstructionPass::rescheduleMIBelowKill optimization
23 # CHECK: PUSH32r %1, implicit-def $esp, implicit $esp
24 # CHECK-NEXT: %2:gr32 = COPY killed %1
25 # CHECK-NEXT: %2:gr32 = XOR32ri %2, 1, implicit-def dead $eflags
26 # CHECK-NEXT: DBG_VALUE %2
27 # CHECK-NEXT: %3:gr32 = COPY killed %2