2 ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-misched -debug-only=machine-scheduler \
3 ; RUN: -o - 2>&1 > /dev/null | FileCheck %s --check-prefix=CHECK-P8
5 @m = dso_local local_unnamed_addr global i64 0, align 8
7 define i64 @fuse_addis_ld() {
9 ; CHECK-P8: ********** MI Scheduling **********
10 ; CHECK-P8-LABEL: fuse_addis_ld:%bb.0 entry
11 ; CHECK-P8: Macro fuse: SU([[SU0:[0-9]+]]) - SU([[SU1:[0-9]+]]) / ADDIStocHA8 - LD
12 ; CHECK-P8: SU([[SU0]]): %[[REG3:[0-9]+]]:g8rc_and_g8rc_nox0 = ADDIStocHA8 $x2, @m
13 ; CHECK-P8: SU([[SU1]]): %{{[0-9]+}}:g8rc = LD target-flags(ppc-toc-lo) @m, %[[REG3]]
14 ; CHECK-P8: ********** MI Scheduling **********
15 ; CHECK-P8-LABEL: fuse_addis_ld:%bb.0 entry
16 ; CHECK-P8: Macro fuse: SU([[SU0:[0-9]+]]) - SU([[SU1:[0-9]+]]) / ADDIStocHA8 - LD
17 ; CHECK-P8: SU([[SU0]]): renamable $x[[REG3:[0-9]+]] = ADDIStocHA8 $x2, @m
18 ; CHECK-P8: SU([[SU1]]): renamable $x[[REG3]] = LD target-flags(ppc-toc-lo) @m, renamable $x[[REG3]]
19 %0 = load i64, ptr @m, align 8