27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt -S -passes=instcombine < %s | FileCheck %s3; rdar://problem/100633074target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"5target triple = "thumbv7-apple-ios5.0.0"6 7%0 = type { [2 x i32] }8%struct.CGPoint = type { float, float }9 10define void @t(ptr %a) nounwind {11; CHECK-LABEL: define void @t12; CHECK-SAME: (ptr [[A:%.*]]) #[[ATTR0:[0-9]+]] {13; CHECK-NEXT: [[POINT:%.*]] = alloca [[STRUCT_CGPOINT:%.*]], align 414; CHECK-NEXT: [[TMP1:%.*]] = load i64, ptr [[A]], align 415; CHECK-NEXT: store i64 [[TMP1]], ptr [[POINT]], align 416; CHECK-NEXT: call void @foo(ptr nonnull [[POINT]]) #[[ATTR0]]17; CHECK-NEXT: ret void18;19 %Point = alloca %struct.CGPoint, align 420 %1 = load i64, ptr %a, align 421 store i64 %1, ptr %Point, align 422 call void @foo(ptr %Point) nounwind23 ret void24}25 26declare void @foo(ptr)27