Add compile command to each testcase
[gcc-vect-testsuite.git] / fast-math-vect-pow-2.ll
blob02b2a835d719ac0ae87dcb83730c4842e6f41105
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 fast-math-vect-pow-2.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer fast-math-vect-pow-2.s > fast-math-vect-pow-2.ll
6 ; ModuleID = 'fast-math-vect-pow-2.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 %struct.anon = type { double, double }
12 @S = common global [100 x %struct.anon] zeroinitializer, align 16
14 define double @main1() nounwind uwtable {
15 entry:
16   br label %for.cond
18 for.cond:                                         ; preds = %for.inc, %entry
19   %tmp = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
20   %exitcond = icmp ne i32 %tmp, 16
21   br i1 %exitcond, label %for.body, label %for.end
23 for.body:                                         ; preds = %for.cond
24   %conv = sitofp i32 %tmp to double
25   %div = fdiv double %conv, 1.000000e+01
26   %mul = fmul double %div, %div
27   store double %mul, double* getelementptr inbounds ([100 x %struct.anon]* @S, i64 0, i64 5, i32 0), align 16
28   br label %for.inc
30 for.inc:                                          ; preds = %for.body
31   %inc = add nsw i32 %tmp, 1
32   br label %for.cond
34 for.end:                                          ; preds = %for.cond
35   %tmp5 = load double* getelementptr inbounds ([100 x %struct.anon]* @S, i64 0, i64 5, i32 0), align 16
36   ret double %tmp5
39 define i32 @main() nounwind uwtable {
40 entry:
41   %call = call double @main1()
42   ret i32 0
44 ; CHECK: define