83 lines · plain
1# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -run-pass=postmisched \2# RUN: -enable-post-misched -debug-only=machine-scheduler \3# RUN: -misched-dump-schedule-trace -misched-postra-direction=topdown \4# RUN: -o - %s 2>&1 | FileCheck --check-prefix=TOPDOWN %s5# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -run-pass=postmisched \6# RUN: -enable-post-misched -debug-only=machine-scheduler \7# RUN: -misched-dump-schedule-trace -misched-postra-direction=bottomup \8# RUN: -o - %s 2>&1 | FileCheck --check-prefix=BOTTOMUP %s9# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -run-pass=postmisched \10# RUN: -enable-post-misched -debug-only=machine-scheduler \11# RUN: -misched-dump-schedule-trace -misched-postra-direction=bidirectional \12# RUN: -o - %s 2>&1 | FileCheck --check-prefix=BIDIRECTIONAL %s13 14# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -passes=postmisched \15# RUN: -enable-post-misched -debug-only=machine-scheduler \16# RUN: -misched-dump-schedule-trace -misched-postra-direction=topdown \17# RUN: -o - %s 2>&1 | FileCheck --check-prefix=TOPDOWN %s18# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -passes=postmisched \19# RUN: -enable-post-misched -debug-only=machine-scheduler \20# RUN: -misched-dump-schedule-trace -misched-postra-direction=bottomup \21# RUN: -o - %s 2>&1 | FileCheck --check-prefix=BOTTOMUP %s22# RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -passes=postmisched \23# RUN: -enable-post-misched -debug-only=machine-scheduler \24# RUN: -misched-dump-schedule-trace -misched-postra-direction=bidirectional \25# RUN: -o - %s 2>&1 | FileCheck --check-prefix=BIDIRECTIONAL %s26 27# REQUIRES: asserts28 29---30name: test31tracksRegLiveness: true32body: |33 bb.0.entry:34 liveins: $x10, $x1135 36 renamable $x12 = MUL renamable $x11, renamable $x1037 renamable $x13 = ADD renamable $x11, renamable $x1038 renamable $x14 = DIVW killed renamable $x12, killed renamable $x1339 PseudoRET implicit $x1440...41 42# TOPDOWN: *** Final schedule for %bb.0 ***43# TOPDOWN-NEXT: * Schedule table (TopDown):44# TOPDOWN-NEXT: i: issue45# TOPDOWN-NEXT: x: resource booked46# TOPDOWN-NEXT: Cycle | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |47# TOPDOWN-NEXT: SU(0) | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |48# TOPDOWN-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |49# TOPDOWN-NEXT: SiFive7PipeB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |50# TOPDOWN-NEXT: SU(1) | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |51# TOPDOWN-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |52# TOPDOWN-NEXT: SU(2) | | | | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |53# TOPDOWN-NEXT: SiFive7PipeAB | | | | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |54# TOPDOWN-NEXT: SiFive7PipeB | | | | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |55# TOPDOWN-NEXT: SiFive7IDiv | | | | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |56# TOPDOWN-NEXT: SU(0): renamable $x12 = MUL renamable $x11, renamable $x1057# TOPDOWN-NEXT: SU(1): renamable $x13 = ADD renamable $x11, renamable $x1058# TOPDOWN-NEXT: SU(2): renamable $x14 = DIVW renamable $x12, renamable $x1359 60# BOTTOMUP: *** Final schedule for %bb.0 ***61# BOTTOMUP-NEXT: * Schedule table (BottomUp):62# BOTTOMUP-NEXT: i: issue63# BOTTOMUP-NEXT: x: resource booked64# BOTTOMUP-NEXT: Cycle | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 |65# BOTTOMUP-NEXT: SU(1) | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |66# BOTTOMUP-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |67# BOTTOMUP-NEXT: SU(0) | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |68# BOTTOMUP-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |69# BOTTOMUP-NEXT: SiFive7PipeB | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |70# BOTTOMUP-NEXT: SU(2) | | | | i | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |71# BOTTOMUP-NEXT: SiFive7PipeAB | | | | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |72# BOTTOMUP-NEXT: SiFive7PipeB | | | | x | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |73# BOTTOMUP-NEXT: SiFive7IDiv | | | | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |74# BOTTOMUP-NEXT: SU(1): renamable $x13 = ADD renamable $x11, renamable $x1075# BOTTOMUP-NEXT: SU(0): renamable $x12 = MUL renamable $x11, renamable $x1076# BOTTOMUP-NEXT: SU(2): renamable $x14 = DIVW renamable $x12, renamable $x1377 78# BIDIRECTIONAL: *** Final schedule for %bb.0 ***79# BIDIRECTIONAL-NEXT: * Schedule table (Bidirectional): not implemented80# BIDIRECTIONAL-NEXT: SU(1): renamable $x13 = ADD renamable $x11, renamable $x1081# BIDIRECTIONAL-NEXT: SU(0): renamable $x12 = MUL renamable $x11, renamable $x1082# BIDIRECTIONAL-NEXT: SU(2): renamable $x14 = DIVW renamable $x12, renamable $x1383