summaryrefslogtreecommitdiff
path: root/polly/test/CodeGen/MemAccess/different_types.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/CodeGen/MemAccess/different_types.ll')
-rw-r--r--polly/test/CodeGen/MemAccess/different_types.ll28
1 files changed, 12 insertions, 16 deletions
diff --git a/polly/test/CodeGen/MemAccess/different_types.ll b/polly/test/CodeGen/MemAccess/different_types.ll
index 91bafcd11984..624de62911ff 100644
--- a/polly/test/CodeGen/MemAccess/different_types.ll
+++ b/polly/test/CodeGen/MemAccess/different_types.ll
@@ -1,4 +1,4 @@
-; RUN: opt -opaque-pointers=0 %loadPolly -polly-import-jscop \
+; RUN: opt %loadPolly -polly-import-jscop \
; RUN: \
; RUN: -polly-codegen -S < %s | FileCheck %s
;
@@ -9,16 +9,14 @@
; A[i] += 10;
; }
-; CHECK: %polly.access.cast.A14 = bitcast float* %A to i32*
-; CHECK: %[[R1:[._0-9]*]] = sub nsw i64 0, %polly.indvar11
+; CHECK: %[[R1:[._0-9]*]] = sub nsw i64 0, %polly.indvar7
; CHECK: %[[R2:[._0-9]*]] = add nsw i64 %[[R1]], 99
-; CHECK: %polly.access.A15 = getelementptr i32, i32* %polly.access.cast.A14, i64 %[[R2]]
-; CHECK: %[[R3:[._0-9]*]] = bitcast i32* %polly.access.A15 to float*
-; CHECK: %tmp14_p_scalar_ = load float, float* %[[R3]], align 4, !alias.scope !3, !noalias !0
+; CHECK: %polly.access.A10 = getelementptr i32, ptr %A, i64 %[[R2]]
+; CHECK: %tmp14_p_scalar_ = load float, ptr %polly.access.A10, align 4, !alias.scope !3, !noalias !0
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-define void @different_types(float* %A, float* %B) {
+define void @different_types(ptr %A, ptr %B) {
bb:
br label %bb2
@@ -28,12 +26,10 @@ bb2: ; preds = %bb8, %bb
br i1 %exitcond1, label %bb3, label %bb10
bb3: ; preds = %bb2
- %tmp = getelementptr inbounds float, float* %B, i64 %i.0
- %tmp4 = bitcast float* %tmp to i32*
- %tmp5 = load i32, i32* %tmp4, align 4
- %tmp6 = getelementptr inbounds float, float* %A, i64 %i.0
- %tmp7 = bitcast float* %tmp6 to i32*
- store i32 %tmp5, i32* %tmp7, align 4
+ %tmp = getelementptr inbounds float, ptr %B, i64 %i.0
+ %tmp5 = load i32, ptr %tmp, align 4
+ %tmp6 = getelementptr inbounds float, ptr %A, i64 %i.0
+ store i32 %tmp5, ptr %tmp6, align 4
br label %bb8
bb8: ; preds = %bb3
@@ -49,10 +45,10 @@ bb11: ; preds = %bb16, %bb10
br i1 %exitcond, label %bb12, label %bb18
bb12: ; preds = %bb11
- %tmp13 = getelementptr inbounds float, float* %A, i64 %i1.0
- %tmp14 = load float, float* %tmp13, align 4
+ %tmp13 = getelementptr inbounds float, ptr %A, i64 %i1.0
+ %tmp14 = load float, ptr %tmp13, align 4
%tmp15 = fadd float %tmp14, 1.000000e+01
- store float %tmp15, float* %tmp13, align 4
+ store float %tmp15, ptr %tmp13, align 4
br label %bb16
bb16: ; preds = %bb12