This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Wrong code for Coldfire?
- From: "C Jaiprakash, Noida" <C dot Jaiprakash at noida dot hcltech dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 15 Jul 2004 13:36:58 +0530
- Subject: 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