| Jinsong Ji | bc7fc3e | 2019-06-25 20:56:17 +0000 | [diff] [blame] | 1 | ; REQUIRES: asserts |
| 2 | ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs\ |
| 3 | ; RUN: -mcpu=pwr9 --ppc-enable-pipeliner -debug-only=pipeliner 2>&1 \ |
| 4 | ; RUN: >/dev/null | FileCheck %s |
| 5 | |
| 6 | %0 = type { i32, [16 x double] } |
| 7 | |
| Jinsong Ji | fee855b | 2019-06-25 21:50:56 +0000 | [diff] [blame] | 8 | ; CHECK: MII = 8 MAX_II = 18 |
| Jinsong Ji | bc7fc3e | 2019-06-25 20:56:17 +0000 | [diff] [blame] | 9 | |
| Jinsong Ji | 84a2c780 | 2019-07-11 19:16:33 +0000 | [diff] [blame] | 10 | define dso_local fastcc double @_ZN3povL9polysolveEiPdS0_() unnamed_addr #0 { |
| Jinsong Ji | bc7fc3e | 2019-06-25 20:56:17 +0000 | [diff] [blame] | 11 | br label %1 |
| 12 | |
| 13 | 1: ; preds = %1, %0 |
| 14 | br i1 undef, label %2, label %1 |
| 15 | |
| 16 | 2: ; preds = %1 |
| 17 | br i1 undef, label %14, label %3 |
| 18 | |
| 19 | 3: ; preds = %3, %2 |
| 20 | %4 = phi i64 [ %7, %3 ], [ undef, %2 ] |
| 21 | %5 = phi double [ %11, %3 ], [ undef, %2 ] |
| 22 | %6 = phi i64 [ %12, %3 ], [ undef, %2 ] |
| 23 | %7 = add nsw i64 %4, -1 |
| 24 | %8 = fmul fast double %5, 1.000000e+07 |
| 25 | %9 = getelementptr inbounds %0, %0* null, i64 1, i32 1, i64 %7 |
| 26 | %10 = load double, double* %9, align 8 |
| 27 | %11 = fadd fast double %10, %8 |
| 28 | %12 = add i64 %6, -1 |
| 29 | %13 = icmp eq i64 %12, 0 |
| 30 | br i1 %13, label %14, label %3 |
| 31 | |
| 32 | 14: ; preds = %3, %2 |
| 33 | %15 = phi double [ undef, %2 ], [ %11, %3 ] |
| 34 | %16 = fmul fast double %15, undef |
| Jinsong Ji | 84a2c780 | 2019-07-11 19:16:33 +0000 | [diff] [blame] | 35 | ret double %16 |
| Jinsong Ji | bc7fc3e | 2019-06-25 20:56:17 +0000 | [diff] [blame] | 36 | } |