dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/codegen cg_coerce.h,1.16,1.17 cg_optabl


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/codegen cg_coerce.h,1.16,1.17 cg_optable.c,1.17,1.18
Date: Wed, 02 Apr 2003 11:28:25 -0500

Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv1894/codegen

Modified Files:
        cg_coerce.h cg_optable.c 
Log Message:
ILOp_UShr patches


Index: cg_coerce.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_coerce.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** cg_coerce.h 16 Nov 2002 02:45:32 -0000      1.16
--- cg_coerce.h 2 Apr 2003 16:28:22 -0000       1.17
***************
*** 223,226 ****
--- 223,227 ----
  extern ILOperator const ILOp_Shl[];
  extern ILOperator const ILOp_Shr[];
+ extern ILOperator const ILOp_UShr[];
  extern ILOperator const ILOp_Eq[];
  extern ILOperator const ILOp_Ne[];

Index: cg_optable.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_optable.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** cg_optable.c        26 Feb 2003 11:41:32 -0000      1.17
--- cg_optable.c        2 Apr 2003 16:28:22 -0000       1.18
***************
*** 434,437 ****
--- 434,463 ----
  /*
  
+ int operator>>>(int x, int count);
+ uint operator>>>(uint x, int count);
+ long operator>>>(long x, int count);
+ ulong operator>>>(ulong x, int count);
+ E operator>>>(E x, int count)
+ U operator>>>(E x, int count)
+ 
+ */
+ 
+ IL_BEGIN_OPERATOR_TABLE(UShr)
+       IL_BINARY_OPERATOR(Int32, Int32, Int32)
+       IL_BINARY_OPERATOR(UInt32, UInt32, Int32)
+       IL_BINARY_OPERATOR(Int64, Int64, Int32)
+       IL_BINARY_OPERATOR(UInt64, UInt64, Int32)
+       {&ILEnumByte, &ILEnumByte, &ILSystemInt32},
+       {&ILEnumSByte, &ILEnumSByte, &ILSystemInt32},
+       {&ILEnumInt16, &ILEnumInt16, &ILSystemInt32},
+       {&ILEnumUInt16, &ILEnumUInt16, &ILSystemInt32},
+       {&ILEnumInt32, &ILEnumInt32, &ILSystemInt32},
+       {&ILEnumUInt32, &ILEnumUInt32, &ILSystemInt32},
+       {&ILEnumInt64, &ILEnumInt64, &ILSystemInt32},
+       {&ILEnumUInt64, &ILEnumUInt64, &ILSystemInt32},
+ IL_END_OPERATOR_TABLE
+ 
+ /*
+ 
  bool operator==(int x, int y);
  bool operator==(uint x, uint y);
***************
*** 1473,1477 ****
        if(!(type1->isEnum) && !(type2->isEnum))
        {
!               if(table != ILOp_Shl && table != ILOp_Shr)
                {
                        /* Arithmetic or bitwise operator */
--- 1499,1503 ----
        if(!(type1->isEnum) && !(type2->isEnum))
        {
!               if(table != ILOp_Shl && table != ILOp_Shr && table != ILOp_UShr)
                {
                        /* Arithmetic or bitwise operator */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]