Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/test/Transforms/LoopVectorize/X86/float-induction-x86.ll
; RUN: opt < %s -O3 -mcpu=core-avx2 -mtriple=x86_64-unknown-linux-gnu -S | FileCheck --check-prefix AUTO_VEC %s | ; RUN: opt < %s -O3 -latesimplifycfg -mcpu=core-avx2 -mtriple=x86_64-unknown-linux-gnu -S | FileCheck --check-prefix AUTO_VEC %s | ||||
; This test checks auto-vectorization with FP induction variable. | ; This test checks auto-vectorization with FP induction variable. | ||||
; The FP operation is not "fast" and requires "fast-math" function attribute. | ; The FP operation is not "fast" and requires "fast-math" function attribute. | ||||
;void fp_iv_loop1(float * __restrict__ A, int N) { | ;void fp_iv_loop1(float * __restrict__ A, int N) { | ||||
; float x = 1.0; | ; float x = 1.0; | ||||
; for (int i=0; i < N; ++i) { | ; for (int i=0; i < N; ++i) { | ||||
; A[i] = x; | ; A[i] = x; | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |