brintos

brintos / llvm-project-archived public Read only

0
0
Text · 998 B · 9fb4f8a Raw
38 lines · plain
1# RUN: llc -mtriple=hexagon -mcpu=hexagonv60 -run-pass post-RA-sched -o - %s | FileCheck %s2 3# The post-RA scheduler reorders S2_lsr_r_p and S2_lsr_r_p_or. Both of them4# use r9, and the last of the two kills it. The kill flag fixup did not5# correctly update the flag, resulting in both instructions killing r9.6 7# CHECK-LABEL: name: foo8# Check for no-kill of r9 in the first instruction, after reordering:9# CHECK: $d7 = S2_lsr_r_p_or killed $d7, killed $d1, $r910# CHECK: $d13 = S2_lsr_r_p killed $d0, killed $r911 12--- |13  define void @foo() {14    ret void15  }16...17 18---19name: foo20tracksRegLiveness: true21body: |22  bb.0:23    successors: %bb.124    liveins: $d0, $d1, $r9, $r1325 26    $d7 = S2_asl_r_p $d0, $r1327    $d5 = S2_asl_r_p $d1, killed $r1328    $d6 = S2_lsr_r_p killed $d0, $r929    $d7 = S2_lsr_r_p_or killed $d7, killed $d1, killed $r930    $d1 = A2_combinew killed $r11, killed $r1031    $d0 = A2_combinew killed $r15, killed $r1432    J2_jump %bb.1, implicit-def $pc33 34  bb.1:35    A2_nop36...37 38