#2275 STM8's regression test failed on latest rev9024

closed-fixed
None
STM8
5
2014-05-28
2014-05-13
Ben Shi
No

I got this failure by doing

  1. tar xfj sdcc-src-20140511-9024.tar.bz2
  2. configure
  3. make all
  4. make install
  5. make test-stm8

And two cases failed. There attachment is the log.

My platform:
MacOS X 10.9.2 (13C1021)
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

1 Attachments

Discussion

  • I guess this problem is specific to 64-bit MacOS, since the tests pass on other 64-bit platforms and on 32-bit MacOS:

    http://sdcc.sourceforge.net/snap.php

    Maybe comparing the generated assembly to that from another system could be a first step in tracking this down:

    gen/stm8/gcc-torture-execute-20051110-2/gcc-torture-execute-20051110-2.asm
    gen/stm8/gcc-torture-execute-20080519-1/gcc-torture-execute-20080519-1.asm

    Philipp

     
  • Could you attach gen/stm8/gcc-torture-execute-20051110-2/gcc-torture-execute-20051110-2.asm and gen/stm8/gcc-torture-execute-20080519-1/gcc-torture-execute-20080519-1.asm for a failing (platform, revision) pair, so I can compare with the same revision on x86-64?

    Philipp

     
  • Ben Shi
    Ben Shi
    2014-05-16

    I will also take a look when I can be free next week.

    My platform:
    MacOS X 10.9.2 (13C1021)
    Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
    Target: x86_64-apple-darwin13.1.0
    Thread model: posix

    Reversion 9024

     
    Last edit: Ben Shi 2014-05-16
  • Ben Shi
    Ben Shi
    2014-05-16

    I will also take a look when I can be free next week.

    My platform:
    MacOS X 10.9.2 (13C1021)
    Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
    Target: x86_64-apple-darwin13.1.0
    Thread model: posix

    Reversion: 9024

     
  • This looks like a bug in genCpl(). In lines 238-245 of gcc-torture-execute-20080519-1.asm the generated code for the complement overwrites bytes of the operand that are still needed.

    Philipp

     
  • The complement issue should be fixed in revision #9028. Since I don't use MacOS, I can't check though.

    Philipp

     
  • Ben Shi
    Ben Shi
    2014-05-25

    Could you please attach you code? I can test it on my MacOS 64.

     
  • Ben Shi
    Ben Shi
    2014-05-25

    I will test rev9028 tomorrow on my MacOS 64.

     
  • By applying your patch #243, gcc-torture-20051110-2 is fixed, too, as of revision #9029.

    Philipp

     
    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause