1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -sroa -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 3*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-pc-linux" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; Make sure we properly handle allocas where the allocated 6*9880d681SAndroid Build Coastguard Worker; size overflows a uint32_t. This specific constant results in 7*9880d681SAndroid Build Coastguard Worker; the size in bits being 32 after truncation to a 32-bit int. 8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: fn1 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret void 10*9880d681SAndroid Build Coastguard Workerdefine void @fn1() { 11*9880d681SAndroid Build Coastguard Worker %a = alloca [1073741825 x i32], align 16 12*9880d681SAndroid Build Coastguard Worker %t0 = bitcast [1073741825 x i32]* %a to i8* 13*9880d681SAndroid Build Coastguard Worker call void @llvm.lifetime.end(i64 4294967300, i8* %t0) 14*9880d681SAndroid Build Coastguard Worker ret void 15*9880d681SAndroid Build Coastguard Worker} 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.lifetime.end(i64, i8* nocapture) 18