Mercurial > hg > CbC > old > device
diff mc-code-powerpc.c @ 593:c139d4d9307c
ltosop optimize
implement throw in ARM
author | kono |
---|---|
date | Fri, 20 Jan 2006 18:48:45 +0900 |
parents | cc2a83f98188 |
children | f49c825920c4 |
line wrap: on
line diff
--- a/mc-code-powerpc.c Fri Jan 20 14:05:48 2006 +0900 +++ b/mc-code-powerpc.c Fri Jan 20 18:48:45 2006 +0900 @@ -4634,16 +4634,16 @@ /* drn_l = l32( crn_l * orn_l); drn_h = h32( crn_l * orn_l); - orn_l = l32( crn_h * orn_l); - drn_h = drn_h + orn_l; + crn_h = l32( crn_h * orn_l); + drn_h = drn_h + crn_h; crn_l = l32( crn_l * orn_h); crn_h = drn_h + crn_l; crn_l = drn_l; */ printf("\tmulhwu %s,%s,%s\n",drn_h,crn_l,orn_l); printf("\tmullw %s,%s,%s\n", drn_l,crn_l,orn_l); - printf("\tmullw %s,%s,%s\n", orn_l,crn_h,orn_l); - printf("\tadd %s,%s,%s\n", drn_h,drn_h,orn_l); + printf("\tmullw %s,%s,%s\n", crn_h,crn_h,orn_l); + printf("\tadd %s,%s,%s\n", drn_h,drn_h,crn_h); printf("\tmullw %s,%s,%s\n", crn_l,orn_h,crn_l); printf("\tadd %s,%s,%s\n", crn_h,drn_h,crn_l); printf("\tmr %s,%s\n", crn_l,drn_l);