Add compile command to each testcase
[gcc-vect-testsuite.git] / pr34005.ll
blobfa2a5282f164f50708ea75075b7c900653c49853
1 ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-vector -dce -S %s | FileCheck %s
2 ; Obtained from C source as:
3 ; clang -S -emit-llvm -O0 pr34005.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer pr34005.s > pr34005.ll
6 ; ModuleID = 'pr34005.s'
7 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"
8 target triple = "x86_64-unknown-linux-gnu"
10 define void @XdmcpUnwrap(i8* %output, i32 %k) nounwind uwtable {
11 entry:
12   %blocks = alloca [2 x [8 x i8]], align 16
13   %cmp = icmp eq i32 %k, 0
14   %tmp = zext i1 %cmp to i64
15   br label %for.cond
17 for.cond:                                         ; preds = %for.inc, %entry
18   %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %entry ]
19   %arrayidx11 = getelementptr i8* %output, i64 %indvar
20   %arrayidx6 = getelementptr [2 x [8 x i8]]* %blocks, i64 0, i64 %tmp, i64 %indvar
21   %exitcond = icmp ne i64 %indvar, 32
22   br i1 %exitcond, label %for.body, label %for.end
24 for.body:                                         ; preds = %for.cond
25   %tmp7 = load i8* %arrayidx6, align 1
26   store i8 %tmp7, i8* %arrayidx11, align 1
27   br label %for.inc
29 for.inc:                                          ; preds = %for.body
30   %indvar.next = add i64 %indvar, 1
31   br label %for.cond
33 for.end:                                          ; preds = %for.cond
34   ret void
36 ; CHECK: define