1 ; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7
3 target 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"
4 target triple = "x86_64-apple-macosx10.8.0"
6 %struct.rc4_state.0.24 = type { i32, i32, [256 x i32] }
8 define void @rc4_crypt(%struct.rc4_state.0.24* nocapture %s) {
10 %x1 = getelementptr inbounds %struct.rc4_state.0.24* %s, i64 0, i32 0
11 %y2 = getelementptr inbounds %struct.rc4_state.0.24* %s, i64 0, i32 1
12 br i1 undef, label %for.body, label %for.end
14 for.body: ; preds = %for.body, %entry
15 %x.045 = phi i32 [ %conv4, %for.body ], [ undef, %entry ]
16 %conv4 = and i32 undef, 255
17 %conv7 = and i32 undef, 255
18 %idxprom842 = zext i32 %conv7 to i64
19 br i1 undef, label %for.end, label %for.body
21 for.end: ; preds = %for.body, %entry
22 %x.0.lcssa = phi i32 [ undef, %entry ], [ %conv4, %for.body ]
23 %y.0.lcssa = phi i32 [ undef, %entry ], [ %conv7, %for.body ]
24 store i32 %x.0.lcssa, i32* %x1, align 4
25 store i32 %y.0.lcssa, i32* %y2, align 4