1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt < %s -passes=instcombine -S | FileCheck %s 3target 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 i32 8; CHECK-NEXT: [[ALLOCA:%.*]] = alloca i8, i32 [[TMP1]], align 1, addrspace(7) 9; CHECK-NEXT: store ptr addrspace(7) [[ALLOCA]], ptr [[DEST:%.*]], align 16 10; CHECK-NEXT: ret void 11; 12 %alloca = alloca i8, i64 %size, addrspace(7) 13 store ptr addrspace(7) %alloca, ptr %dest 14 ret void 15} 16