fixes ordering of instructions for decoding

This commit is contained in:
Eyck Jentzsch 2022-06-19 16:52:29 +02:00
parent f096b15dbd
commit 18f33b4a68
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ struct instruction_decoder<${coreDef.name.toLowerCase()}> {
} }
for(auto& lut: qlut){ for(auto& lut: qlut){
std::sort(std::begin(lut), std::end(lut), [](instruction_pattern const& a, instruction_pattern const& b){ std::sort(std::begin(lut), std::end(lut), [](instruction_pattern const& a, instruction_pattern const& b){
return bit_count(a.mask) > bit_count(b.mask); return bit_count(a.mask) < bit_count(b.mask);
}); });
} }
} }