changeset 204:4c614334f3d0

long long test parse
author kono
date Tue, 13 Apr 2004 12:26:56 +0900
parents 28baf6cd9ad1
children a50f90d0b63a
files mc-code-ia32.c mc-code-mips.c mc-code-powerpc.c mc-parse.c
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mc-code-ia32.c	Tue Apr 13 10:28:21 2004 +0900
+++ b/mc-code-ia32.c	Tue Apr 13 12:26:56 2004 +0900
@@ -282,7 +282,7 @@
 int 
 get_lregister_var(NMTBL *n)
 {
-    return -1;
+    return list2(LVAR,new_lvar(size_of_longlong));
 }
 
 int
--- a/mc-code-mips.c	Tue Apr 13 10:28:21 2004 +0900
+++ b/mc-code-mips.c	Tue Apr 13 12:26:56 2004 +0900
@@ -548,7 +548,7 @@
 int
 get_lregister_var(NMTBL *n)
 {
-    return -1;
+    return list2(LVAR,new_lvar(size_of_double));
 }
 #endif
 
--- a/mc-code-powerpc.c	Tue Apr 13 10:28:21 2004 +0900
+++ b/mc-code-powerpc.c	Tue Apr 13 12:26:56 2004 +0900
@@ -483,7 +483,7 @@
 int
 get_lregister_var(NMTBL *n)
 {
-    return -1;
+    return list2(LVAR,new_lvar(size_of_longlong));
 }
 #endif
 
--- a/mc-parse.c	Tue Apr 13 10:28:21 2004 +0900
+++ b/mc-parse.c	Tue Apr 13 12:26:56 2004 +0900
@@ -3274,7 +3274,7 @@
     if(t1==LONGLONG||t2==LONGLONG)
 	return lbinop(op,e1,e2,t1,t2);
     if(t1==ULONGLONG||t2==ULONGLONG)
-	return lbinop(op+US,e1,e2,t1,t2);
+	return lbinop(op+((op==BOR||op==EOR||op==BAND||op==EQ||op==NEQ)?0:US),e1,e2,t1,t2);
 #endif
     if(car(e1)==CONST&&car(e2)==CONST) {
 	e1=cadr(e1);