Home | History | Annotate | Download | only in X86
      1 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
      2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -bb-vectorize -bb-vectorize-req-chain-depth=3 -instcombine -gvn -S | FileCheck %s
      3 
      4 ; Simple 3-pair chain with loads and stores
      5 define void @test1(double* %a, double* %b, double* %c) nounwind uwtable readonly {
      6 entry:
      7   %i0 = load double* %a, align 8
      8   %i1 = load double* %b, align 8
      9   %mul = fmul double %i0, %i1
     10   %arrayidx3 = getelementptr inbounds double* %a, i64 1
     11   %i3 = load double* %arrayidx3, align 8
     12   %arrayidx4 = getelementptr inbounds double* %b, i64 1
     13   %i4 = load double* %arrayidx4, align 8
     14   %mul5 = fmul double %i3, %i4
     15   store double %mul, double* %c, align 8
     16   %arrayidx5 = getelementptr inbounds double* %c, i64 1
     17   store double %mul5, double* %arrayidx5, align 8
     18   ret void
     19 ; CHECK-LABEL: @test1(
     20 ; CHECK: %i0.v.i0 = bitcast double* %a to <2 x double>*
     21 ; CHECK: %i1.v.i0 = bitcast double* %b to <2 x double>*
     22 ; CHECK: %i0 = load <2 x double>* %i0.v.i0, align 8
     23 ; CHECK: %i1 = load <2 x double>* %i1.v.i0, align 8
     24 ; CHECK: %mul = fmul <2 x double> %i0, %i1
     25 ; CHECK: %0 = bitcast double* %c to <2 x double>*
     26 ; CHECK: store <2 x double> %mul, <2 x double>* %0, align 8
     27 ; CHECK: ret void
     28 }
     29 
     30