5c: do shift propagation for rotate right (ROR)

This commit is contained in:
cinap_lenrek 2016-09-03 19:05:28 +02:00
parent a5d8cd30bb
commit 9e926eeb4e

View file

@ -45,7 +45,7 @@ loop1:
t = 0;
for(r=firstr; r!=R; r=r->link) {
p = r->prog;
if(p->as == ASLL || p->as == ASRL || p->as == ASRA) {
if(p->as == ASLL || p->as == ASRL || p->as == ASRA || p->as == AROR) {
/*
* elide shift into D_SHIFT operand of subsequent instruction
*/
@ -669,6 +669,9 @@ shiftprop(Reg *r)
case ASRA:
o |= 2<<5;
break;
case AROR:
o |= 3<<5;
break;
}
p2->from.offset = o;
if(debug['H'])