commit ebde2ff899c16612c7ff58df61f3946be47c51c8 (tree)
parent 39ad072a84af006ab89b72177524a859a50bb662
Author: Shawn Landden <shawn@git.icu>
Date: Fri, 21 Jun 2019 08:43:10 -0500
stage1: update fn_key_eql() for @mulAdd() on vectors
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/analyze.cpp b/src/analyze.cpp
@@ -5772,8 +5772,10 @@ bool zig_llvm_fn_key_eql(ZigLLVMFnKey a, ZigLLVMFnKey b) {
case ZigLLVMFnIdFloor:
case ZigLLVMFnIdCeil:
case ZigLLVMFnIdSqrt:
- case ZigLLVMFnIdFMA:
return a.data.floating.bit_count == b.data.floating.bit_count;
+ case ZigLLVMFnIdFMA:
+ return a.data.floating.bit_count == b.data.floating.bit_count &&
+ a.data.floating.vector_len == b.data.floating.vector_len;
case ZigLLVMFnIdOverflowArithmetic:
return (a.data.overflow_arithmetic.bit_count == b.data.overflow_arithmetic.bit_count) &&
(a.data.overflow_arithmetic.add_sub_mul == b.data.overflow_arithmetic.add_sub_mul) &&