This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Wrong code for Coldfire?


Hi,
  Below is my test program and part of assembly generated.

void main()
{
    int count = 5;
    int j;
    j = count % 3;
 }
        moveq.l #3,%d2
        rems.l %d2,%d3:%d1 <=== 
        divs.l %d2,%d1
        move.l %d3,%d0
        move.l %d0,-8(%a6)


Is rems.l %d2,%d3:%d1 this a valid instruction for coldfire? Below is syntax of 'rems' instruction
rems/remu <ea>y, Dw:Dx

CJ


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]