1; REQUIRES: asserts 2; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -verify-misched -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s 3; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-misched -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s --check-prefix=CHECK-P9 4 5define i64 @store_disjoint_memory(i64* nocapture %P, i64 %v) { 6entry: 7; CHECK: ********** MI Scheduling ********** 8; CHECK-LABEL: store_disjoint_memory:%bb.0 9; CHECK:SU([[REG2:[0-9]+]]): STD renamable $x{{[0-9]+}}, 24, renamable $x[[REG5:[0-9]+]] 10; CHECK-NOT: Successors: 11; CHECK-NOT: SU([[REG3]]): Ord Latency=0 Memory 12; CHECK:SU([[REG3:[0-9]+]]): STD renamable $x{{[0-9]+}}, 16, renamable $x[[REG5]] 13; CHECK: Predecessors: 14; CHECK-NOT: SU([[REG2]]): Ord Latency=0 Memory 15 %arrayidx = getelementptr inbounds i64, i64* %P, i64 3 16 store i64 %v, i64* %arrayidx 17 %arrayidx1 = getelementptr inbounds i64, i64* %P, i64 2 18 store i64 %v, i64* %arrayidx1 19 ret i64 %v 20} 21 22; LXSD is an instruction that can be modeled. 23@gd = external local_unnamed_addr global [500 x double], align 8 24@gf = external local_unnamed_addr global [500 x float], align 4 25 26define double @test_lxsd_no_barrier(double %a, double %b, double %c, double %d, double %e, double %f, double %g, double %h, double %i, double %j, double %k, double %l, double %m) { 27entry: 28 %0 = load double, double* getelementptr inbounds ([500 x double], [500 x double]* @gd, i64 0, i64 10), align 8 29 %1 = load double, double* getelementptr inbounds ([500 x double], [500 x double]* @gd, i64 0, i64 17), align 8 30 %2 = load double, double* getelementptr inbounds ([500 x double], [500 x double]* @gd, i64 0, i64 87), align 8 31 %3 = load double, double* getelementptr inbounds ([500 x double], [500 x double]* @gd, i64 0, i64 97), align 8 32 %4 = load double, double* getelementptr inbounds ([500 x double], [500 x double]* @gd, i64 0, i64 77), align 8 33 %add = fadd double %a, %b 34 %add1 = fadd double %add, %c 35 %add2 = fadd double %add1, %d 36 %add3 = fadd double %add2, %e 37 %add4 = fadd double %add3, %f 38 %add5 = fadd double %add4, %g 39 %add6 = fadd double %add5, %h 40 %add7 = fadd double %add6, %i 41 %add8 = fadd double %add7, %j 42 %add9 = fadd double %add8, %k 43 %add10 = fadd double %add9, %l 44 %add11 = fadd double %add10, %m 45 %add12 = fadd double %add11, %0 46 %add13 = fadd double %add12, %1 47 %add14 = fadd double %add13, %2 48 %add15 = fadd double %add14, %3 49 %add16 = fadd double %add15, %4 50 ret double %add16 51; CHECK-P9: ********** MI Scheduling ********** 52; CHECK-P9-LABEL: test_lxsd_no_barrier:%bb.0 entry 53; CHECK-P9-NOT:Global memory object and new barrier chain: SU({{[0-9]+}}). 54; CHECK-P9:SU({{[0-9]+}}): renamable $vf{{[0-9]+}} = LXSD 136 55; CHECK-P9:SU({{[0-9]+}}): renamable $vf{{[0-9]+}} = LXSD 696 56; CHECK-P9:SU({{[0-9]+}}): renamable $vf{{[0-9]+}} = LXSD 776 57; CHECK-P9:SU({{[0-9]+}}): renamable $vf{{[0-9]+}} = LXSD 616 58} 59