diff --git a/gen_input/templates/CORENAME_decoder.cpp.gtl b/gen_input/templates/CORENAME_decoder.cpp.gtl index d6b7032..9291118 100644 --- a/gen_input/templates/CORENAME_decoder.cpp.gtl +++ b/gen_input/templates/CORENAME_decoder.cpp.gtl @@ -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); }); } }