36 lines · plain
1# RUN: llc -mtriple=arm64-apple-macos -mcpu=apple-m1 -sched-print-cycles=true \2# RUN: -run-pass=machine-scheduler -debug-only=machine-scheduler -o - %s 2>&1 | FileCheck %s3 4# RUN: llc -mtriple=arm64-apple-macos -mcpu=apple-m1 -sched-print-cycles=true \5# RUN: -passes=machine-scheduler -debug-only=machine-scheduler -o - %s 2>&1 | FileCheck %s6 7# RUN: llc -mtriple=arm64-apple-macos -mcpu=apple-m1 -sched-print-cycles=false \8# RUN: -run-pass=machine-scheduler -debug-only=machine-scheduler -o - %s 2>&1 | FileCheck %s --check-prefix=NOCYCLES9 10# RUN: llc -mtriple=arm64-apple-macos -mcpu=apple-m1 -sched-print-cycles=false \11# RUN: -passes=machine-scheduler -debug-only=machine-scheduler -o - %s 2>&1 | FileCheck %s --check-prefix=NOCYCLES12 13# REQUIRES: asserts14---15name: mul_mul16tracksRegLiveness: true17body: |18 bb.0:19 liveins: $x020 $x1 = ADDXrr $x0, $x021 $x2 = ADDXrr $x1, $x122 $x3 = ADDXrr $x2, $x223 $x4 = ADDXrr $x2, $x224 25# CHECK-LABEL: *** Final schedule for %bb.0 ***26# CHECK-NEXT: SU(0) [TopReadyCycle = 0, BottomReadyCycle = 0]: $x1 = ADDXrr $x0, $x027# CHECK-NEXT: SU(1) [TopReadyCycle = 0, BottomReadyCycle = 1]: $x2 = ADDXrr $x1, $x128# CHECK-NEXT: SU(2) [TopReadyCycle = 1, BottomReadyCycle = 0]: $x3 = ADDXrr $x2, $x229# CHECK-NEXT: SU(3) [TopReadyCycle = 1, BottomReadyCycle = 0]: $x4 = ADDXrr $x2, $x230 31# NOCYCLES-LABEL: *** Final schedule for %bb.0 ***32# NOCYCLES-NEXT: SU(0): $x1 = ADDXrr $x0, $x033# NOCYCLES-NEXT: SU(1): $x2 = ADDXrr $x1, $x134# NOCYCLES-NEXT: SU(2): $x3 = ADDXrr $x2, $x235# NOCYCLES-NEXT: SU(3): $x4 = ADDXrr $x2, $x236