Add compile command to each testcase
[gcc-vect-testsuite.git] / pr41956.ll
blob43e9bfb3e26a64421dc8cfc144b35bbb4aae9023
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 pr41956.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer pr41956.s > pr41956.ll
6 ; ModuleID = 'pr41956.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 @K(i32* %gpwgts, i32* %badminpwgt, i32* %badmaxpwgt) nounwind uwtable {
11 entry:
12   br label %for.cond
14 for.cond:                                         ; preds = %for.inc, %entry
15   %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %entry ]
16   %tmp = mul i64 %indvar, 2
17   %tmp4 = add i64 %tmp, 1
18   %arrayidx33 = getelementptr i32* %badmaxpwgt, i64 %tmp4
19   %arrayidx13 = getelementptr i32* %badminpwgt, i64 %tmp4
20   %arrayidx37 = getelementptr i32* %badmaxpwgt, i64 %tmp
21   %arrayidx = getelementptr i32* %gpwgts, i64 %tmp
22   %arrayidx17 = getelementptr i32* %badminpwgt, i64 %tmp
23   %exitcond = icmp ne i64 %indvar, 5
24   br i1 %exitcond, label %for.body, label %for.end
26 for.body:                                         ; preds = %for.cond
27   %tmp3 = load i32* %arrayidx, align 4
28   %tmp8 = load i32* %arrayidx, align 4
29   %add = add nsw i32 %tmp3, %tmp8
30   store i32 %add, i32* %arrayidx13, align 4
31   store i32 %add, i32* %arrayidx17, align 4
32   %tmp22 = load i32* %arrayidx, align 4
33   %tmp27 = load i32* %arrayidx, align 4
34   %add28 = add nsw i32 %tmp22, %tmp27
35   store i32 %add28, i32* %arrayidx33, align 4
36   store i32 %add28, i32* %arrayidx37, align 4
37   br label %for.inc
39 for.inc:                                          ; preds = %for.body
40   %indvar.next = add i64 %indvar, 1
41   br label %for.cond
43 for.end:                                          ; preds = %for.cond
44   ret void
46 ; CHECK: define