diff options
Diffstat (limited to 'polly/test/CodeGen/loop_with_condition.c')
| -rw-r--r-- | polly/test/CodeGen/loop_with_condition.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/polly/test/CodeGen/loop_with_condition.c b/polly/test/CodeGen/loop_with_condition.c deleted file mode 100644 index c27d211032f..00000000000 --- a/polly/test/CodeGen/loop_with_condition.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <string.h> -#define N 1024 -int A[N]; -int B[N]; - -void loop_with_condition() { - 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(); - - 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 / 2 && A[i] != 2) - return 1; - return 0; -} - |

