brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 17d6619 Raw
38 lines · plain
1# RUN: llc -mtriple=thumbv7em-unknown-unknown -mcpu=cortex-m7 \2# RUN:    -sched-model-force-enable-intervals \3# RUN:    %s -run-pass=machine-scheduler -o - 2>&1 -debug | FileCheck %s4# REQUIRES: asserts5 6# NOTE: Without the bugfix introduced in this code, the test below7# would raise the assertion "A resource is being overwritten" from8# `ResourceSegments::add` when enforcing the use of resource intervals9# via -sched-model-force-enable-intervals with the scheduling model10# for -mcpu=cortex-m7.11 12# CHECK-LABEL: *** Final schedule for %bb.0 ***13# CHECK: SU(0):   %0:dpr = COPY $d014# CHECK: SU(1):   %1:dpr = VABSD %0:dpr, 14, $noreg15# CHECK: SU(2):   %2:dpr = VLDRD %const.0, 0, 14, $noreg :: (load (s64) from constant-pool)16# CHECK: SU(4):   %3:rgpr = t2MOVi 0, 14, $noreg, $noreg17# CHECK: SU(3):   VCMPD %1:dpr, %2:dpr, 14, $noreg, implicit-def $fpscr_nzcv, implicit $fpscr_rm18# CHECK: SU(5):   $r0 = COPY %3:rgpr19---20name:            test21tracksRegLiveness: true22constants:23  - id:              024    value:           double 0x7FF000000000000025body:             |26  bb.0:27    liveins: $d028 29    %0:dpr = COPY $d030    %1:dpr = VABSD %0, 14 /* CC::al */, $noreg31    %2:dpr = VLDRD %const.0, 0, 14 /* CC::al */, $noreg :: (load (s64) from constant-pool)32    VCMPD %1, %2, 14 /* CC::al */, $noreg, implicit-def $fpscr_nzcv, implicit $fpscr_rm33    %4:rgpr = t2MOVi 0, 14 /* CC::al */, $noreg, $noreg34    $r0 = COPY %435    tBX_RET 14 /* CC::al */, $noreg, implicit killed $r036 37...38