diff options
Diffstat (limited to 'polly/test')
| -rw-r--r-- | polly/test/GPGPU/scalar-parameter.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/polly/test/GPGPU/scalar-parameter.ll b/polly/test/GPGPU/scalar-parameter.ll index 38b38f4054e..7edc70b552c 100644 --- a/polly/test/GPGPU/scalar-parameter.ll +++ b/polly/test/GPGPU/scalar-parameter.ll @@ -2,6 +2,10 @@ ; RUN: -disable-output < %s | \ ; RUN: FileCheck -check-prefix=CODE %s +; RUN: opt %loadPolly -polly-codegen-ppcg \ +; RUN: -S < %s | \ +; RUN: FileCheck -check-prefix=IR %s + ; REQUIRES: pollyacc ; CODE: Code @@ -301,6 +305,17 @@ bb7: ; preds = %bb1 ret void } +; IR-LABEL: @i8 + +; IR: %1 = call i8* @polly_getDevicePtr(i8* %p_dev_array_MemRef_A) +; IR-NEXT: store i8* %1, i8** %polly_launch_0_param_0 +; IR-NEXT: %2 = getelementptr [2 x i8*], [2 x i8*]* %polly_launch_0_params, i64 0, i64 0 +; IR-NEXT: %3 = bitcast i8** %polly_launch_0_param_0 to i8* +; IR-NEXT: store i8* %3, i8** %2 +; IR-NEXT: store i8 %b, i8* %polly_launch_0_param_1 +; IR-NEXT: %4 = getelementptr [2 x i8*], [2 x i8*]* %polly_launch_0_params, i64 0, i64 1 +; IR-NEXT: store i8* %polly_launch_0_param_1, i8** %4 + ; CODE: Code ; CODE-NEXT: ==== ; CODE-NEXT: # host |

