brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · 91dc2af Raw
23 lines · plain
1; RUN: opt -S -mtriple=i386-unknown-freebsd -mcpu=i486 -passes=loop-vectorize < %s2 3define i32 @PR14639(ptr nocapture %s, i32 %len) nounwind {4entry:5  %cmp4 = icmp sgt i32 %len, 06  br i1 %cmp4, label %for.body, label %for.end7 8for.body:                                         ; preds = %entry, %for.body9  %i.06 = phi i32 [ %inc, %for.body ], [ 0, %entry ]10  %r.05 = phi i32 [ %xor, %for.body ], [ 0, %entry ]11  %arrayidx = getelementptr inbounds i8, ptr %s, i32 %i.0612  %0 = load i8, ptr %arrayidx, align 113  %conv = sext i8 %0 to i3214  %xor = xor i32 %conv, %r.0515  %inc = add nsw i32 %i.06, 116  %exitcond = icmp eq i32 %inc, %len17  br i1 %exitcond, label %for.end, label %for.body18 19for.end:                                          ; preds = %for.body, %entry20  %r.0.lcssa = phi i32 [ 0, %entry ], [ %xor, %for.body ]21  ret i32 %r.0.lcssa22}23