Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/test/Transforms/LoopVectorize/float-induction.ll
; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -dce -instcombine -S | FileCheck --check-prefix VEC4_INTERL1 %s | ; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -dce -instcombine -S | FileCheck --check-prefix VEC4_INTERL1 %s | ||||
; RUN: opt < %s -loop-vectorize -force-vector-interleave=2 -force-vector-width=4 -dce -instcombine -S | FileCheck --check-prefix VEC4_INTERL2 %s | ; RUN: opt < %s -loop-vectorize -force-vector-interleave=2 -force-vector-width=4 -dce -instcombine -S | FileCheck --check-prefix VEC4_INTERL2 %s | ||||
; RUN: opt < %s -loop-vectorize -force-vector-interleave=2 -force-vector-width=1 -dce -instcombine -S | FileCheck --check-prefix VEC1_INTERL2 %s | ; RUN: opt < %s -loop-vectorize -force-vector-interleave=2 -force-vector-width=1 -dce -instcombine -S | FileCheck --check-prefix VEC1_INTERL2 %s | ||||
; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -dce -simplifycfg -instcombine -S | FileCheck --check-prefix VEC2_INTERL1_PRED_STORE %s | ; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -dce -simplifycfg -instcombine -latesimplifycfg -S | FileCheck --check-prefix VEC2_INTERL1_PRED_STORE %s | ||||
@fp_inc = common global float 0.000000e+00, align 4 | @fp_inc = common global float 0.000000e+00, align 4 | ||||
;void fp_iv_loop1(float init, float * __restrict__ A, int N) { | ;void fp_iv_loop1(float init, float * __restrict__ A, int N) { | ||||
; float x = init; | ; float x = init; | ||||
; for (int i=0; i < N; ++i) { | ; for (int i=0; i < N; ++i) { | ||||
; A[i] = x; | ; A[i] = x; | ||||
; x -= fp_inc; | ; x -= fp_inc; | ||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |