* src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 28 Aug 2004 06:54:24 +0000 (06:54 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 28 Aug 2004 06:54:24 +0000 (06:54 +0000)
test

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3456 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/hc08/gen.c

index b3312311a025a725367d5d14c928f44026095382..836297911af27ba67f803fdab7980dceff6c9ac1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
+       test
+
 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCsymt.c (processFuncArgs): make sure parameter types
index 5b755ac39e3e95cfceb7d1533065244707cf4845..627ec94057cfabaf887dd71ea556338a70c1e500 100644 (file)
@@ -5716,7 +5716,7 @@ shiftL2Left2Result (operand * left, int offl,
             rmwWithReg ("rol", hc08_reg_x);
           }
     }
-  storeRegToAop (hc08_reg_xa, AOP (result), offl);
+  storeRegToAop (hc08_reg_xa, AOP (result), offr);
 
   pullOrFreeReg (hc08_reg_x, needpulx);
   pullOrFreeReg (hc08_reg_a, needpula);