1 ; RUN: opt -S -codegenprepare < %s | FileCheck %s
3 target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
4 target triple = "nvptx64-nvidia-cuda"
7 define i64 @test(i1 %pred, i64* %ptr) {
9 %ptr_as1 = addrspacecast i64* %ptr to i64 addrspace(1)*
10 br i1 %pred, label %l1, label %l2
13 ; CHECK-NOT: addrspacecast
14 %v1 = load i64, i64* %ptr
18 ; CHECK-NOT: addrspacecast
19 %v2 = load i64, i64 addrspace(1)* %ptr_as1