Skip to content

Commit

Permalink
Don't try to run SVE2 code if vector_bits doesn't match host.
Browse files Browse the repository at this point in the history
  • Loading branch information
Z Stern committed Mar 6, 2024
1 parent f84c764 commit 210e5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/correctness/simd_op_check_sve2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SimdOpCheckArmSve : public SimdOpCheckTest {
cout << "HL_JIT_TARGET is: " << jit_target.to_string() << endl;

auto is_same_triple = [](const Target &t1, const Target &t2) -> bool {
return t1.arch == t2.arch && t1.bits == t2.bits && t1.os == t2.os;
return t1.arch == t2.arch && t1.bits == t2.bits && t1.os == t2.os && t1.vector_bits == t2.vector_bits;
};

can_run_the_code = is_same_triple(host, target) && is_same_triple(jit_target, target);
Expand Down

0 comments on commit 210e5d7

Please sign in to comment.