1 ; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=xcore | FileCheck %s
3 target datalayout = "e-p:32:32:32-a0:0:32-n32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f16:16:32-f32:32:32-f64:32:32"
4 target triple = "xcore"
6 ; Simple 3-pair chain with loads and stores
8 ; CHECK-NOT: <2 x double>
9 define void @test1(double* %a, double* %b, double* %c) {
11 %i0 = load double* %a, align 8
12 %i1 = load double* %b, align 8
13 %mul = fmul double %i0, %i1
14 %arrayidx3 = getelementptr inbounds double, double* %a, i64 1
15 %i3 = load double* %arrayidx3, align 8
16 %arrayidx4 = getelementptr inbounds double, double* %b, i64 1
17 %i4 = load double* %arrayidx4, align 8
18 %mul5 = fmul double %i3, %i4
19 store double %mul, double* %c, align 8
20 %arrayidx5 = getelementptr inbounds double, double* %c, i64 1
21 store double %mul5, double* %arrayidx5, align 8