1 # RUN: llc -march=hexagon -mcpu=hexagonv60 -run-pass post-RA-sched -o - %s | FileCheck %s
3 # The post-RA scheduler reorders S2_lsr_r_p and S2_lsr_r_p_or. Both of them
4 # use r9, and the last of the two kills it. The kill flag fixup did not
5 # correctly update the flag, resulting in both instructions killing r9.
7 # CHECK-LABEL: name: foo
8 # Check for no-kill of r9 in the first instruction, after reordering:
9 # CHECK: $d7 = S2_lsr_r_p_or killed $d7, killed $d1, $r9
10 # CHECK: $d13 = S2_lsr_r_p killed $d0, killed $r9
20 tracksRegLiveness: true
24 liveins: $d0, $d1, $r9, $r13
26 $d7 = S2_asl_r_p $d0, $r13
27 $d5 = S2_asl_r_p $d1, killed $r13
28 $d6 = S2_lsr_r_p killed $d0, $r9
29 $d7 = S2_lsr_r_p_or killed $d7, killed $d1, killed $r9
30 $d1 = A2_combinew killed $r11, killed $r10
31 $d0 = A2_combinew killed $r15, killed $r14
32 J2_jump %bb.1, implicit-def $pc