aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-28 14:17:05 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-28 14:17:05 -0700
commitb6ccde47adeb0dbd7b39150c36498100e0d98075 (patch)
treec9fff157c08701cd6d6849a1c95fddd5385e1c86 /test/src
parent691c7cb3cd3cc6cb4f6324d0ad4a5c3e2e8ff94c (diff)
downloadzig-b6ccde47adeb0dbd7b39150c36498100e0d98075.tar.gz
zig-b6ccde47adeb0dbd7b39150c36498100e0d98075.zip
Sema: allow mixing array and vector operands
* Added peer type resolution for arrays and vectors: the vector type is selected. * Fixed passing the lhs type or rhs type instead of the peer resolved type when calling Value methods during analyzeArithmetic handling of comptime expressions. * `checkVectorizableBinaryOperands` now allows mixing vectors and arrays, as long as one of the operands is a vector. This matches stage1's handling of `^=` but apparently stage1 is inconsistent and does not handle e.g. `*=`. stage2 now will always allow mixing vector and array operands for all operations.
Diffstat (limited to 'test/src')
0 files changed, 0 insertions, 0 deletions