5c: do shift propagation for rotate right (ROR)
This commit is contained in:
parent
a5d8cd30bb
commit
9e926eeb4e
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue