Add compile command to each testcase
[gcc-vect-testsuite.git] / vect-118.ll
blob4cf9e21f2687ed1ddcbfa557d853e35dcbe636c9
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 vect-118.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer vect-118.s > vect-118.ll
6 ; ModuleID = 'vect-118.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 @f(i16* noalias %a, i16* noalias %b, i16* noalias %x) 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   %arrayidx14 = getelementptr i16* %x, i64 %indvar
17   %arrayidx7 = getelementptr i16* %b, i64 %indvar
18   %arrayidx = getelementptr i16* %a, i64 %indvar
19   %exitcond = icmp ne i64 %indvar, 1024
20   br i1 %exitcond, label %for.body, label %for.end
22 for.body:                                         ; preds = %for.cond
23   %tmp3 = load i16* %arrayidx, align 2
24   %tmp8 = load i16* %arrayidx7, align 2
25   %add = add i16 %tmp3, %tmp8
26   store i16 %add, i16* %arrayidx14, align 2
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