diff options
Diffstat (limited to 'polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll')
-rw-r--r-- | polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll b/polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll index 588f581b2ef3..46df98dbd500 100644 --- a/polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll +++ b/polly/test/CodeGen/GPGPU/3d_innermost_non_parallel.ll @@ -1,5 +1,23 @@ ; RUN: opt %loadPolly -basicaa -polly-import-jscop -polly-import-jscop-dir=%S -polly-import-jscop-postfix=transformed+gpu -enable-polly-gpgpu -polly-gpgpu-triple=nvptx64-unknown-unknown -polly-codegen %s -S | FileCheck %s -; ModuleID = '3d_innermost_non_parallel.s' + +;int A[128][128]; +; +;int gpu_no_pure() { +; int i,j,k; +; +; for(i = 0; i < 128; i++) +; for(j = 0; j < 128; j++) +; for(k = 0; k < 256; k++) +; A[i][j] += i*123/(k+1)+5-j*k-123; +; +; return 0; +;} +; +;int main() { +; int b = gpu_no_pure(); +; 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-S128" target triple = "x86_64-unknown-linux-gnu" |