Skip to content

Commit 0e9d926

Browse files
chenhu-wangdmitrygo
authored and
dmitrygo
committed
equality_uni_xxx_for_sse_and_avx
1 parent 5ac2a40 commit 0e9d926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpu/x64/jit_generator.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class jit_generator : public Xbyak::CodeGenerator, public c_compatible {
628628
if (is_valid_isa(avx))
629629
vaddps(x, op1, op2);
630630
else {
631-
assert(x.getIdx() == op1.getIdx());
631+
if (!x.isEqualIfNotInherited(op1)) movups(x, op1);
632632
addps(x, op2);
633633
}
634634
}
@@ -732,7 +732,7 @@ class jit_generator : public Xbyak::CodeGenerator, public c_compatible {
732732
if (is_valid_isa(avx))
733733
vsubps(x, op1, op2);
734734
else {
735-
assert(x.isEqualIfNotInherited(op1));
735+
if (!x.isEqualIfNotInherited(op1)) movups(x, op1);
736736
subps(x, op2);
737737
}
738738
}

0 commit comments

Comments
 (0)