16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=instcombine -S | FileCheck %s3target datalayout = "p0:64:64:64-p7:128:128:128:32-A7"4 5define void @test_array_alloca_intptr_not_sizet(i64 %size, ptr %dest) {6; CHECK-LABEL: @test_array_alloca_intptr_not_sizet(7; CHECK-NEXT: [[TMP1:%.*]] = trunc i64 [[SIZE:%.*]] to i328; CHECK-NEXT: [[ALLOCA:%.*]] = alloca i8, i32 [[TMP1]], align 1, addrspace(7)9; CHECK-NEXT: store ptr addrspace(7) [[ALLOCA]], ptr [[DEST:%.*]], align 1610; CHECK-NEXT: ret void11;12 %alloca = alloca i8, i64 %size, addrspace(7)13 store ptr addrspace(7) %alloca, ptr %dest14 ret void15}16