Runtime test private_sinks: the NaN kernel's stores past its arrays have names of their own
The NaN case's two stores at k reused %pa2 and %pb2, the names of element 2's pointers, so llvm-as refused the module (multiple definition of local value 'pa2', lavapipe job m3-max-65711).
This commit is contained in:
1 parent
cd0dce11b5
commit
00ee1bd86f
1 file changed
+4
-4
@@ -279,10 +279,10 @@ source_filename = "private_sinks.metal"
|
||||
%pk = getelementptr inbounds i32, ptr addrspace(1) %in, i32 %i1
|
||||
%k = load i32, ptr addrspace(1) %pk, align 4
|
||||
%w = shl i32 %k, 2
|
||||
%pa2 = getelementptr inbounds i8, ptr %a, i32 %w
|
||||
store float 2.500000e+00, ptr %pa2, align 4
|
||||
%pb2 = getelementptr inbounds [4 x float], ptr %b, i32 0, i32 %k
|
||||
store float 2.500000e+00, ptr %pb2, align 4
|
||||
%pak = getelementptr inbounds i8, ptr %a, i32 %w
|
||||
store float 2.500000e+00, ptr %pak, align 4
|
||||
%pbk = getelementptr inbounds [4 x float], ptr %b, i32 0, i32 %k
|
||||
store float 2.500000e+00, ptr %pbk, align 4
|
||||
"
|
||||
} else {
|
||||
""
|
||||
|
||||
Reference in new issue
Block a user