diff 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
line wrap: on
line diff
--- a/mc-code-powerpc.c	Sun Jun 06 02:40:32 2004 +0900
+++ b/mc-code-powerpc.c	Sun Jun 06 20:19:36 2004 +0900
@@ -2633,7 +2633,11 @@
 jcond(int l, char cond)
 {       
     if (chk) return;
-    printf("\tb%s cr%d,L_%d\n",cond?"ne":"eq",cmpflag,l);
+    if (cond==LT) {
+	printf("\tb%s cr%d,L_%d\n",code_ge(0),cmpflag,l);
+    } else if (cond==1||cond==0) {
+	printf("\tb%s cr%d,L_%d\n",cond?"ne":"eq",cmpflag,l);
+    } else error(-1);
 }
 
 void