diff options
Diffstat (limited to 'polly/test/CodeGen/single_do_loop_int_param_iterations.ll')
| -rw-r--r-- | polly/test/CodeGen/single_do_loop_int_param_iterations.ll | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/polly/test/CodeGen/single_do_loop_int_param_iterations.ll b/polly/test/CodeGen/single_do_loop_int_param_iterations.ll index 9c037b89107..c2a067ad817 100644 --- a/polly/test/CodeGen/single_do_loop_int_param_iterations.ll +++ b/polly/test/CodeGen/single_do_loop_int_param_iterations.ll @@ -1,6 +1,32 @@ ; RUN: opt %loadPolly %defaultOpts -polly-cloog-scop -S -analyze %s | FileCheck %s ; XFAIL: * -; ModuleID = 'single_do_loop_int_param_iterations.s' + +;define N 20 +;#include "limits.h" +;int A[N]; +; +;void bar (int n) { +; int i; +; __sync_synchronize(); +; i = 0; +; +; do { +; A[0] = i; +; ++i; +; } while (i < 2 * n); +; __sync_synchronize(); +;} +; +;int main () { +; A[0] = 0; +; bar (N/2); +; +; if (A[0] == N - 1 ) +; return 0; +; else +; return 1; +;} + 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" |

