1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S --passes=slp-vectorizer -mtriple=riscv64-unknown-linux-gnu -mattr=+v < %s | FileCheck %s
4 define fastcc void @rephase(ptr %phases_in, ptr %157, i64 %158) {
5 ; CHECK-LABEL: define fastcc void @rephase(
6 ; CHECK-SAME: ptr [[PHASES_IN:%.*]], ptr [[TMP0:%.*]], i64 [[TMP1:%.*]]) #[[ATTR0:[0-9]+]] {
7 ; CHECK-NEXT: [[ENTRY:.*:]]
8 ; CHECK-NEXT: [[IND_END11:%.*]] = getelementptr i8, ptr [[TMP0]], i64 [[TMP1]]
9 ; CHECK-NEXT: [[TMP2:%.*]] = load double, ptr [[TMP0]], align 8
10 ; CHECK-NEXT: [[IMAG_247:%.*]] = getelementptr i8, ptr [[IND_END11]], i64 408
11 ; CHECK-NEXT: [[IMAG_1_251:%.*]] = getelementptr i8, ptr [[IND_END11]], i64 424
12 ; CHECK-NEXT: [[TMP3:%.*]] = load <2 x double>, ptr [[IMAG_1_251]], align 8
13 ; CHECK-NEXT: [[TMP4:%.*]] = insertelement <4 x double> poison, double [[TMP2]], i32 0
14 ; CHECK-NEXT: [[TMP5:%.*]] = shufflevector <4 x double> [[TMP4]], <4 x double> poison, <4 x i32> zeroinitializer
15 ; CHECK-NEXT: [[TMP6:%.*]] = call <4 x double> @llvm.vector.insert.v4f64.v2f64(<4 x double> <double 0.000000e+00, double 0.000000e+00, double poison, double poison>, <2 x double> [[TMP3]], i64 2)
16 ; CHECK-NEXT: [[TMP7:%.*]] = fmul <4 x double> [[TMP5]], [[TMP6]]
17 ; CHECK-NEXT: store <4 x double> [[TMP7]], ptr [[IMAG_247]], align 8
18 ; CHECK-NEXT: store double [[TMP2]], ptr [[PHASES_IN]], align 8
19 ; CHECK-NEXT: ret void
22 %ind.end11 = getelementptr i8, ptr %157, i64 %158
23 %186 = load double, ptr %157, align 8
24 %imag.247 = getelementptr i8, ptr %ind.end11, i64 408
25 %mul35.248 = fmul double %186, 0.000000e+00
26 store double %mul35.248, ptr %imag.247, align 8
27 %arrayidx23.1.249 = getelementptr i8, ptr %ind.end11, i64 416
28 %mul.1.250 = fmul double %186, 0.000000e+00
29 store double %mul.1.250, ptr %arrayidx23.1.249, align 8
30 %imag.1.251 = getelementptr i8, ptr %ind.end11, i64 424
31 %187 = load double, ptr %imag.1.251, align 8
32 %mul35.1.252 = fmul double %186, %187
33 store double %mul35.1.252, ptr %imag.1.251, align 8
34 %arrayidx23.2.253 = getelementptr i8, ptr %ind.end11, i64 432
35 %188 = load double, ptr %arrayidx23.2.253, align 8
36 %mul.2.254 = fmul double %186, %188
37 store double %mul.2.254, ptr %arrayidx23.2.253, align 8
38 store double %186, ptr %phases_in, align 8