1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=i386-pc-windows-msvc19.34.0 -mcpu=pentium4 < %s | FileCheck %s
4 define i32 @test(double %mul321.i) {
5 ; CHECK-LABEL: define i32 @test(
6 ; CHECK-SAME: double [[MUL321_I:%.*]]) #[[ATTR0:[0-9]+]] {
7 ; CHECK-NEXT: [[ENTRY:.*]]:
8 ; CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x double> poison, double [[MUL321_I]], i32 0
9 ; CHECK-NEXT: br label %[[DO_BODY220_I:.*]]
10 ; CHECK: [[DO_BODY220_I]]:
11 ; CHECK-NEXT: [[TMP1:%.*]] = phi <2 x double> [ [[TMP6:%.*]], %[[DO_BODY221_I:.*]] ], [ zeroinitializer, %[[ENTRY]] ]
12 ; CHECK-NEXT: br label %[[DO_BODY221_I]]
13 ; CHECK: [[DO_BODY221_I]]:
14 ; CHECK-NEXT: [[TMP2:%.*]] = fadd <2 x double> [[TMP1]], zeroinitializer
15 ; CHECK-NEXT: [[TMP3:%.*]] = fmul <2 x double> [[TMP2]], zeroinitializer
16 ; CHECK-NEXT: [[TMP4:%.*]] = extractelement <2 x double> [[TMP3]], i32 0
17 ; CHECK-NEXT: [[TMP5:%.*]] = extractelement <2 x double> [[TMP3]], i32 1
18 ; CHECK-NEXT: [[ADD318_I:%.*]] = fadd double [[TMP4]], [[TMP5]]
19 ; CHECK-NEXT: [[TMP6]] = insertelement <2 x double> [[TMP0]], double [[ADD318_I]], i32 1
20 ; CHECK-NEXT: br label %[[DO_BODY220_I]]
23 br label %do.body220.i
26 %c1.2.i = phi double [ %mul321.i, %do.body221.i ], [ 0.000000e+00, %entry ]
27 %s1.1.i = phi double [ %add318.i, %do.body221.i ], [ 0.000000e+00, %entry ]
28 br label %do.body221.i
30 do.body221.i: ; preds = %do.body220.i
31 %sub311.i1 = fadd double %c1.2.i, 0.000000e+00
32 %add315.i = fadd double %s1.1.i, 0.000000e+00
33 %mul316.i = fmul double %sub311.i1, 0.000000e+00
34 %mul317.i = fmul double %add315.i, 0.000000e+00
35 %add318.i = fadd double %mul316.i, %mul317.i
36 br label %do.body220.i