• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s
2
3target 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"
4target triple = "x86_64-apple-macosx10.8.0"
5
6; Don't vectorize when noimplicitfloat is used.
7; CHECK: test1
8; CHECK-NOT: store <2 x double>
9; CHECK: ret
10define void @test1(double* %a, double* %b, double* %c) noimplicitfloat { ; <------ noimplicitfloat attribute here!
11entry:
12  %i0 = load double, double* %a, align 8
13  %i1 = load double, double* %b, align 8
14  %mul = fmul double %i0, %i1
15  %arrayidx3 = getelementptr inbounds double, double* %a, i64 1
16  %i3 = load double, double* %arrayidx3, align 8
17  %arrayidx4 = getelementptr inbounds double, double* %b, i64 1
18  %i4 = load double, double* %arrayidx4, align 8
19  %mul5 = fmul double %i3, %i4
20  store double %mul, double* %c, align 8
21  %arrayidx5 = getelementptr inbounds double, double* %c, i64 1
22  store double %mul5, double* %arrayidx5, align 8
23  ret void
24}
25
26