blob: fd6339cc9262ee21f98ec9c56d3557c64059c569 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; RUN: opt -instcombine -S < %s | FileCheck %s
target datalayout = "e-p:64:64:64-n8:16:32:64"
define i32* @pointer_to_addrspace_pointer(i32 addrspace(1)** %x) nounwind {
; CHECK-LABEL: @pointer_to_addrspace_pointer(
; CHECK: load
; CHECK: addrspacecast
%y = bitcast i32 addrspace(1)** %x to i32**
%z = load i32** %y
ret i32* %z
}
|