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