1 # RUN: llc -mtriple=riscv64 -mcpu=sifive-x280 -run-pass=machine-scheduler \
2 # RUN: -debug-only=machine-scheduler -misched-dump-schedule-trace \
3 # RUN: -misched-topdown -o - %s 2>&1 | FileCheck %s
6 # The purpose of this test is to show that the VADD instructions are issued so
7 # that the SiFive7VA is saturated.
10 tracksRegLiveness: true
13 liveins: $v8m2, $v10m2, $v12m2, $v14m2, $x10
15 %4:gprnox0 = COPY $x10
20 dead $x0 = PseudoVSETVLI %4, 217 /* e64, m2, ta, ma */, implicit-def $vl, implicit-def $vtype
21 %5:vrm2 = PseudoVADD_VV_M2 undef %5, %0, %1, $noreg, 6 /* e64 */, 0 /* tu, mu */, implicit $vl, implicit $vtype
22 %6:vrm2 = PseudoVADD_VV_M2 undef %6, %3, %2, $noreg, 6 /* e64 */, 0 /* tu, mu */, implicit $vl, implicit $vtype
23 %7:vrm2 = PseudoVADD_VV_M2 undef %7, %5, %6, $noreg, 6 /* e64 */, 0 /* tu, mu */, implicit $vl, implicit $vtype
25 PseudoRET implicit $v8m2
27 # CHECK: *** Final schedule for %bb.0 ***
28 # CHECK-NEXT: * Schedule table (TopDown):
29 # CHECK-NEXT: i: issue
30 # CHECK-NEXT: x: resource booked
31 # CHECK-NEXT: Cycle | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
32 # CHECK-NEXT: SU(0) | i | | | | | | | | | | | | | | | | |
33 # CHECK-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | |
34 # CHECK-NEXT: SU(1) | i | | | | | | | | | | | | | | | | |
35 # CHECK-NEXT: SiFive7PipeAB | x | | | | | | | | | | | | | | | | |
36 # CHECK-NEXT: SU(2) | | i | | | | | | | | | | | | | | | |
37 # CHECK-NEXT: SiFive7PipeAB | | x | | | | | | | | | | | | | | | |
38 # CHECK-NEXT: SU(3) | | i | | | | | | | | | | | | | | | |
39 # CHECK-NEXT: SiFive7PipeAB | | x | | | | | | | | | | | | | | | |
40 # CHECK-NEXT: SU(4) | | | i | | | | | | | | | | | | | | |
41 # CHECK-NEXT: SiFive7PipeAB | | | x | | | | | | | | | | | | | | |
42 # CHECK-NEXT: SU(5) | | | i | | | | | | | | | | | | | | |
43 # CHECK-NEXT: SiFive7PipeA | | | x | | | | | | | | | | | | | | |
44 # CHECK-NEXT: SiFive7PipeAB | | | x | | | | | | | | | | | | | | |
45 # CHECK-NEXT: SU(7) | | | | | i | | | | | | | | | | | | |
46 # CHECK-NEXT: SiFive7VCQ | | | | | x | | | | | | | | | | | | |
47 # CHECK-NEXT: SiFive7VA | | | | | | x | x | x | x | | | | | | | | |
48 # CHECK-NEXT: SU(6) | | | | | | | | | i | | | | | | | | |
49 # CHECK-NEXT: SiFive7VCQ | | | | | | | | | x | | | | | | | | |
50 # CHECK-NEXT: SiFive7VA | | | | | | | | | | x | x | x | x | | | | |
51 # CHECK-NEXT: SU(8) | | | | | | | | | | | | | i | | | | |
52 # CHECK-NEXT: SiFive7VCQ | | | | | | | | | | | | | x | | | | |
53 # CHECK-NEXT: SiFive7VA | | | | | | | | | | | | | | x | x | x | x |
54 # CHECK-NEXT: SU(9) | | | | | | | | | | | | | | | | | i |
55 # CHECK-NEXT: SiFive7PipeAB | | | | | | | | | | | | | | | | | x |