Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/InferAddressSpaces/AMDGPU/select.ll
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | |||||
; CHECK-LABEL: @store_select_group_global_mismatch_inttoptr_flat_null_constexpr( | ; CHECK-LABEL: @store_select_group_global_mismatch_inttoptr_flat_null_constexpr( | ||||
; CHECK: store i32 7, i32 addrspace(1)* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32 addrspace(1)* addrspacecast (i32* inttoptr (i64 123 to i32*) to i32 addrspace(1)*), i32 addrspace(1)* null), align 4 | ; CHECK: store i32 7, i32 addrspace(1)* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32 addrspace(1)* addrspacecast (i32* inttoptr (i64 123 to i32*) to i32 addrspace(1)*), i32 addrspace(1)* null), align 4 | ||||
define amdgpu_kernel void @store_select_group_global_mismatch_inttoptr_flat_null_constexpr() #0 { | define amdgpu_kernel void @store_select_group_global_mismatch_inttoptr_flat_null_constexpr() #0 { | ||||
store i32 7, i32* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32* inttoptr (i64 123 to i32*), i32* addrspacecast (i32 addrspace(1)* null to i32*)), align 4 | store i32 7, i32* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32* inttoptr (i64 123 to i32*), i32* addrspacecast (i32 addrspace(1)* null to i32*)), align 4 | ||||
ret void | ret void | ||||
} | } | ||||
; CHECK-LABEL: @store_select_group_global_mismatch_undef_undef_constexpr( | ; CHECK-LABEL: @store_select_group_global_mismatch_undef_undef_constexpr( | ||||
; CHECK: store i32 7, i32 addrspace(3)* null | ; CHECK: store i32 7, i32* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32* addrspacecast (i32 addrspace(3)* null to i32*), i32* undef), align 4 | ||||
define amdgpu_kernel void @store_select_group_global_mismatch_undef_undef_constexpr() #0 { | define amdgpu_kernel void @store_select_group_global_mismatch_undef_undef_constexpr() #0 { | ||||
store i32 7, i32* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32* addrspacecast (i32 addrspace(3)* null to i32*), i32* addrspacecast (i32 addrspace(1)* undef to i32*)), align 4 | store i32 7, i32* select (i1 icmp eq (i32 ptrtoint (i32 addrspace(3)* @lds1 to i32), i32 4), i32* addrspacecast (i32 addrspace(3)* null to i32*), i32* addrspacecast (i32 addrspace(1)* undef to i32*)), align 4 | ||||
ret void | ret void | ||||
} | } | ||||
@lds2 = external addrspace(3) global [1024 x i32], align 4 | @lds2 = external addrspace(3) global [1024 x i32], align 4 | ||||
; CHECK-LABEL: @store_select_group_constexpr_ptrtoint( | ; CHECK-LABEL: @store_select_group_constexpr_ptrtoint( | ||||
Show All 32 Lines |