brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 0f55d79 Raw
30 lines · plain
1; RUN: opt < %s -enable-interleaved-mem-accesses=true -force-vector-width=4 -passes=loop-vectorize -S | FileCheck %s2 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.7.0"5 6; Verify that we do not get any loads of vectors with x86_fp80 elements.7;8; CHECK-NOT: load {{.*}} x x86_fp809define x86_fp80 @foo(ptr %a) {10entry:11  br label %for.body12 13for.cond.cleanup:14  ret x86_fp80 %315 16for.body:17  %i.09 = phi i16 [ 0, %entry ], [ %add3, %for.body ]18  %res.08 = phi x86_fp80 [ zeroinitializer, %entry ], [ %3, %for.body ]19  %arrayidx = getelementptr inbounds x86_fp80, ptr %a, i16 %i.0920  %0 = load x86_fp80, ptr %arrayidx, align 121  %add = or i16 %i.09, 122  %arrayidx2 = getelementptr inbounds x86_fp80, ptr %a, i16 %add23  %1 = load x86_fp80, ptr %arrayidx2, align 124  %2 = fadd fast x86_fp80 %0, %res.0825  %3 = fadd fast x86_fp80 %2, %126  %add3 = add nuw nsw i16 %i.09, 227  %cmp = icmp ult i16 %add3, 40028  br i1 %cmp, label %for.body, label %for.cond.cleanup29}30