2 ; RUN: llc < %s -mtriple=armv8r-eabi -mcpu=cortex-a57 -mattr=use-misched -verify-misched -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s
4 ; CHECK: ********** MI Scheduling **********
5 ; We need second, post-ra scheduling to have VLDM instruction combined from single-loads
6 ; CHECK: ********** MI Scheduling **********
9 ; CHECK-NEXT: Latency : 6
12 ; CHECK-SAME: Latency=5
14 ; CHECK-SAME: Latency=0
16 ; CHECK-SAME: Latency=0
18 define double @foo(ptr %a) nounwind optsize {
20 %b = getelementptr double, ptr %a, i32 1
21 %c = getelementptr double, ptr %a, i32 2
22 %0 = load double, ptr %a, align 4
23 %1 = load double, ptr %b, align 4
24 %2 = load double, ptr %c, align 4
26 %mul1 = fmul double %0, %1
27 %mul2 = fmul double %mul1, %2