diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-11-02 06:08:39 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-11-02 06:08:39 +0000 |
| commit | 41b20a62c926f7b8b68d5fcff18dbf43faab28c2 (patch) | |
| tree | 2fcb6954b2ee72925111d572edc9018e985921c0 /polly/test/CodeGen/loop_with_condition_ineq.ll | |
| parent | acc748b2b572ab3106665fcb16ed669b29c213a6 (diff) | |
| download | bcm5719-llvm-41b20a62c926f7b8b68d5fcff18dbf43faab28c2.tar.gz bcm5719-llvm-41b20a62c926f7b8b68d5fcff18dbf43faab28c2.zip | |
Tests: move content of .c files in .ll
llvm-svn: 167283
Diffstat (limited to 'polly/test/CodeGen/loop_with_condition_ineq.ll')
| -rw-r--r-- | polly/test/CodeGen/loop_with_condition_ineq.ll | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/polly/test/CodeGen/loop_with_condition_ineq.ll b/polly/test/CodeGen/loop_with_condition_ineq.ll index 3dd29b5fa42..9790818111b 100644 --- a/polly/test/CodeGen/loop_with_condition_ineq.ll +++ b/polly/test/CodeGen/loop_with_condition_ineq.ll @@ -1,4 +1,44 @@ ; RUN: opt %loadPolly %defaultOpts -polly-cloog -analyze %s | FileCheck %s + +;#include <string.h> +;#define N 1024 +;int A[N]; +;int B[N]; +; +;void loop_with_condition_ineq() { +; int i; +; +; __sync_synchronize(); +; for (i = 0; i < N; i++) { +; if (i != N / 2) +; A[i] = 1; +; else +; A[i] = 2; +; B[i] = 3; +; } +; __sync_synchronize(); +;} +; +;int main () { +; int i; +; +; memset(A, 0, sizeof(int) * N); +; memset(B, 0, sizeof(int) * N); +; +; loop_with_condition_ineq(); +; +; for (i = 0; i < N; i++) +; if (B[i] != 3) +; return 1; +; +; for (i = 0; i < N; i++) +; if (i != N / 2 && A[i] != 1) +; return 1; +; else if (i == N && A[i] != 2) +; return 1; +; return 0; +;} + 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-pc-linux-gnu" |

