Comparing vector with optional vector causes LLVM ERROR: Cannot emit physreg copy instruction
.
#15022
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
bug
Observed behavior contradicts documented or intended behavior
Milestone
Zig Version
0.11.0-dev.1913+95f6a5935
Steps to Reproduce and Observed Behavior
This code creates the following error:
The first problem here is the missing zig compiler error.
Normally if
a
was not optional this code would cause a compiler error because vector comparisons produce bool vectors.
If I adapt the code to correctly
@reduce
the bool vector this happens:output:
Expected Behavior
The text was updated successfully, but these errors were encountered: