Skip to content

Commit

Permalink
Subtract should subtract. Thanks hlide!
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Aug 23, 2014
1 parent 168239b commit 389de8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alloy/backend/x64/x64_sequences.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@ EMITTER(VECTOR_SUB, MATCH(I<OPCODE_VECTOR_SUB, V128<>, V128<>, V128<>>)) {
_mm_store_si128(reinterpret_cast<__m128i*>(&src1v), src1);
_mm_store_si128(reinterpret_cast<__m128i*>(&src2v), src2);
for (size_t i = 0; i < 4; ++i) {
auto t = int64_t(src1v[i]) + int64_t(src2v[i]);
auto t = int64_t(src1v[i]) - int64_t(src2v[i]);
value[i] = t < INT_MIN ? INT_MIN : (t > INT_MAX ? INT_MAX : int32_t(t));
}
return _mm_load_si128(reinterpret_cast<__m128i*>(&value));
Expand Down

0 comments on commit 389de8b

Please sign in to comment.