1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=mem2reg -S | FileCheck %s
6 target datalayout = "e-p:64:64-p5:32:32-A5"
8 define amdgpu_kernel void @addressspace_alloca() {
9 ; CHECK-LABEL: @addressspace_alloca(
10 ; CHECK-NEXT: ret void
12 %alloca = alloca i8, align 8, addrspace(5)
13 %cast = addrspacecast ptr addrspace(5) %alloca to ptr
14 call void @llvm.lifetime.start.p0(i64 2, ptr %cast)
18 declare void @llvm.lifetime.start.p0(i64 %size, ptr nocapture %ptr)