brintos

brintos / llvm-project-archived public Read only

0
0
Text · 550 B · 40fbd3e Raw
23 lines · plain
1; RUN: opt < %s -S -passes=loop-vectorize | FileCheck %s2 3; Check that we can vectorize this loop without crashing.4 5target triple = "aarch64-none-linux-gnu"6define float @quux() {7; CHECK: @quux8bb:9  br label %bb110 11bb1:12  %tmp = phi i64 [ %tmp3, %bb1 ], [ 0, %bb ]13  %tmp2 = phi float [ %tmp5, %bb1 ], [ 0.000000e+00, %bb ]14  %tmp3 = add nsw i64 %tmp, 115  %tmp5 = fadd float %tmp2, 3.000000e+0016  %tmp6 = mul i32 0, 017  %tmp7 = icmp sgt i64 %tmp, 018  br i1 %tmp7, label %bb8, label %bb119 20bb8:21  %tmp9 = phi float [ %tmp5, %bb1 ]22  ret float %tmp923}