diff options
Diffstat (limited to 'polly/test/CodeGen/OpenMP/simple_nested_loop.ll')
| -rw-r--r-- | polly/test/CodeGen/OpenMP/simple_nested_loop.ll | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/polly/test/CodeGen/OpenMP/simple_nested_loop.ll b/polly/test/CodeGen/OpenMP/simple_nested_loop.ll index 5ef6bb1bb5f..4c16c55e26b 100644 --- a/polly/test/CodeGen/OpenMP/simple_nested_loop.ll +++ b/polly/test/CodeGen/OpenMP/simple_nested_loop.ll @@ -1,5 +1,28 @@ -; ModuleID = 'simple_nested_loop.s' ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-openmp -verify-dom-info -S %s | FileCheck %s + +;#include <string.h> +;#define N 10 +; +;double A[N]; +;double B[N]; +; +;void loop_openmp() { +; for (int i = 0; i < N; i++) { +; for (int j = 0; j < N; j++) { +; A[j] += j; +; } +; } +;} +; +;int main () { +; memset(A, 0, sizeof(float) * N); +; +; loop_openmp(); +; +; return 0; +;} +; + target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" target triple = "i386-pc-linux-gnu" |

