summaryrefslogtreecommitdiff
path: root/polly/test/CodeGen/OpenMP/parallel_loop.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/CodeGen/OpenMP/parallel_loop.ll')
-rw-r--r--polly/test/CodeGen/OpenMP/parallel_loop.ll24
1 files changed, 23 insertions, 1 deletions
diff --git a/polly/test/CodeGen/OpenMP/parallel_loop.ll b/polly/test/CodeGen/OpenMP/parallel_loop.ll
index cd1935645fc1..f81875d95b7e 100644
--- a/polly/test/CodeGen/OpenMP/parallel_loop.ll
+++ b/polly/test/CodeGen/OpenMP/parallel_loop.ll
@@ -1,8 +1,30 @@
-; ModuleID = 'parallel_loop.s'
; RUN: opt %loadPolly %defaultOpts -polly-cloog -polly-codegen -enable-polly-openmp -analyze < %s | FileCheck %s
; RUN: opt %loadPolly %defaultOpts -polly-import-jscop -polly-import-jscop-dir=%S -polly-cloog -polly-codegen -enable-polly-openmp -analyze < %s | FileCheck -check-prefix=IMPORT %s
; RUN: opt %loadPolly %defaultOpts -polly-import-jscop -polly-import-jscop-dir=%S -polly-cloog -polly-codegen -enable-polly-openmp -analyze < %s | FileCheck -check-prefix=IMPORT %s
; RUN: opt %loadPolly %defaultOpts -polly-import-jscop -polly-import-jscop-postfix=tiled -polly-import-jscop-dir=%S -polly-cloog -polly-codegen -enable-polly-openmp -analyze -disable-polly-legality < %s | FileCheck -check-prefix=TILED %s
+
+;#define M 1024
+;#define N 1024
+;#define K 1024
+;
+;float A[M][K], B[K][N], C[M][N], X[K];
+;
+;float parallel_loop() {
+; int i, j, k;
+;
+; for (i = 0; i < M; i++)
+; for (j = 0; j< N; j++)
+; for (k = 0; k < K; k++)
+; C[i][j] += A[i][k] * B[k][j];
+;
+; for (i = 0; i < M; i++)
+; for (j = 0; j < N; j++)
+; for (k = 0; k < K; k++)
+; X[k] += X[k];
+;
+; return C[42][42] + X[42];
+;}
+
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"
target triple = "x86_64-unknown-linux-gnu"