1# RUN: llc -march=hexagon -mcpu=hexagonv60 -run-pass post-RA-sched -o - %s | FileCheck %s 2 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. 6 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 11 12--- | 13 define void @foo() { 14 ret void 15 } 16... 17 18--- 19name: foo 20tracksRegLiveness: true 21body: | 22 bb.0: 23 successors: %bb.1 24 liveins: $d0, $d1, $r9, $r13 25 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 33 34 bb.1: 35 A2_nop 36... 37 38