comparison mc-code-powerpc.c @ 297:0f79c95df73a

switch index no compile error
author kono
date Sun, 06 Jun 2004 20:19:36 +0900
parents 6d4231b6f9fe
children 86255dd7f148
comparison
equal deleted inserted replaced
296:284aa4eaab0d 297:0f79c95df73a
2631 2631
2632 static void 2632 static void
2633 jcond(int l, char cond) 2633 jcond(int l, char cond)
2634 { 2634 {
2635 if (chk) return; 2635 if (chk) return;
2636 printf("\tb%s cr%d,L_%d\n",cond?"ne":"eq",cmpflag,l); 2636 if (cond==LT) {
2637 printf("\tb%s cr%d,L_%d\n",code_ge(0),cmpflag,l);
2638 } else if (cond==1||cond==0) {
2639 printf("\tb%s cr%d,L_%d\n",cond?"ne":"eq",cmpflag,l);
2640 } else error(-1);
2637 } 2641 }
2638 2642
2639 void 2643 void
2640 jmp(int l) 2644 jmp(int l)
2641 { 2645 {