We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76267f8 commit b6a97eaCopy full SHA for b6a97ea
gcc/bbb-opts.c
@@ -5964,6 +5964,20 @@ opt_shift (void)
5964
}
5965
5966
5967
+ // there might be an AND
5968
+ // and.l #255,dy
5969
+ else if (jj->get_mode() == SImode && jj->get_src_op() == AND
5970
+ && !jj->is_src_mem())
5971
+ {
5972
+ int val = jj->get_src_intval();
5973
+ if ((val == 255 && mode == QImode) || (val == 65535 && mode == HImode))
5974
5975
+ reduce = true;
5976
+ if (srcop == ASHIFTRT)
5977
+ srcop = LSHIFTRT;
5978
+ SET_INSN_DELETED(jj->get_insn());
5979
+ }
5980
5981
// move.b ..,dy or move.w ...,dy
5982
else if (jj->get_mode() == mode)
5983
{
0 commit comments