harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r512151 - in /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf: IpfInstCodeSelector.cpp include/IpfCodeSelector.h
Date Tue, 27 Feb 2007 06:27:35 GMT
Author: varlax
Date: Mon Feb 26 22:27:34 2007
New Revision: 512151

URL: http://svn.apache.org/viewvc?view=rev&rev=512151
Log:
IPF compilation fixed after H-3222

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/include/IpfCodeSelector.h

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp?view=diff&rev=512151&r1=512150&r2=512151
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/IpfInstCodeSelector.cpp
Mon Feb 26 22:27:34 2007
@@ -770,16 +770,16 @@
 //----------------------------------------------------------------------------//
 // Load 32-bit integer constant
 
-CG_OpndHandle *IpfInstCodeSelector::ldc_i4(uint32 val) {
+CG_OpndHandle *IpfInstCodeSelector::ldc_i4(int32 val) {
 
     IPF_LOG << "      ldc_i4; val=" << val << endl;
     
     Opnd *dst;
     if (ipfConstantFolding) {
-        dst = opndManager->newImm((int64)((int32)val));
+        dst = opndManager->newImm((int64)val);
     } else {
         dst = opndManager->newRegOpnd(OPND_G_REG, DATA_I32);
-        ldc((RegOpnd *)dst, (int64)((int32)val));
+        ldc((RegOpnd *)dst, (int64)val);
     }
     return dst;
 }
@@ -787,16 +787,16 @@
 //----------------------------------------------------------------------------//
 // Load 64-bit integer constant
 
-CG_OpndHandle *IpfInstCodeSelector::ldc_i8(uint64 val) {
+CG_OpndHandle *IpfInstCodeSelector::ldc_i8(int64 val) {
 
     IPF_LOG << "      ldc_i8; val=" << val << endl;
 
     Opnd *dst;
     if (ipfConstantFolding) {
-        dst = opndManager->newImm((int64)val);
+        dst = opndManager->newImm(val);
     } else {
         dst = opndManager->newRegOpnd(OPND_G_REG, DATA_I64);
-        ldc((RegOpnd *)dst, (int64)val);
+        ldc((RegOpnd *)dst, val);
     }
     return dst;
 }

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/include/IpfCodeSelector.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/include/IpfCodeSelector.h?view=diff&rev=512151&r1=512150&r2=512151
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/include/IpfCodeSelector.h
(original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ipf/include/IpfCodeSelector.h
Mon Feb 26 22:27:34 2007
@@ -147,8 +147,8 @@
     CG_OpndHandle *convToInt(ConvertToIntOp::Types, bool, ConvertToIntOp::OverflowMod, Type*,
CG_OpndHandle*);
     CG_OpndHandle *convToFp(ConvertToFpOp::Types, Type*, CG_OpndHandle*);
 
-    CG_OpndHandle *ldc_i4(uint32);
-    CG_OpndHandle *ldc_i8(uint64);
+    CG_OpndHandle *ldc_i4(int32);
+    CG_OpndHandle *ldc_i8(int64);
     CG_OpndHandle *ldc_s(float);
     CG_OpndHandle *ldc_d(double);
     CG_OpndHandle *ldnull(bool);



Mime
View raw message