Skip to content

Commit 60b1dca

Browse files
committed
Add intel customization to addrspacecast_generic_null.ll because 5e0f14b not in (#920)
5e0f14b was reverted in 1a21f73. The test was added in c4fd801.
1 parent 74bf18b commit 60b1dca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm-spirv/test/addrspacecast_generic_null.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ target triple = "spir64-unknown-unknown"
1111
; CHECK: %_ptr_Workgroup_uchar = OpTypePointer Workgroup %uchar
1212
; CHECK: %[[NULL:[0-9]+]] = OpConstantNull %_ptr_Generic_uchar
1313
; CHECK: %[[CAST:[0-9]+]] = OpGenericCastToPtr %_ptr_Workgroup_uchar %[[NULL]]
14-
; CHECK: OpPtrEqual %bool %[[CAST]]
14+
; CHECK: %[[PTR2U:[0-9]+]] = OpConvertPtrToU %ulong %[[CAST]]
15+
; CHECK: OpIEqual %bool %[[PTR2U]]
1516

1617
define spir_kernel void @bar_generic_null(ptr addrspace(3) %arg) {
1718
%expr = icmp eq ptr addrspace(3) addrspacecast (ptr addrspace(4) null to ptr addrspace(3)), %arg

0 commit comments

Comments
 (0)