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

View File

@ -63,7 +63,7 @@ struct instruction_decoder<${coreDef.name.toLowerCase()}> {
}
for(auto& lut: qlut){
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);
});
}
}