Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2199 gcc-torture-execute-20020508-1 fails for hc08

closed-fixed
Erik Petrich
None
HC08
7
2013-08-05
2013-07-22
No

Since revision #8773, regression test gcc-torture-execute-20020508-1 fails for hc08.

The issue can be seen in the right shift in line 777 of the .asm file: The left operand is loaded into register x, overwriting the right operand.

I don't know, why this isn't caught by the sameRegs() condition in line 8372 of src/hc08/gen.c. And I have no idea how my changes from revision #8772 to #8773 might have caused this: The changes I made should only affect the manual and the naming of debugging options.

Philipp

Discussion

  • Erik Petrich
    Erik Petrich
    2013-08-05

    • status: open --> closed-fixed
    • assigned_to: Erik Petrich
     
  • Erik Petrich
    Erik Petrich
    2013-08-05

    I somehow missed this bug report, but I did notice the regression failure on the daily snapshots. Fixed a few days ago in revision #8775.

    The sameRegs() condition was false because the shift count and result were different sizes (int vs char) so the assigned registers were not exactly the same, but the bug arose because there was still a register in common.