GithubHelp home page GithubHelp logo

Initial test-suite pass about llvm-mos HOT 4 CLOSED

llvm-mos avatar llvm-mos commented on June 21, 2024
Initial test-suite pass

from llvm-mos.

Comments (4)

mysterymath avatar mysterymath commented on June 21, 2024

In the initial reckoning, it looks like 420 test cases pass, 55 fail, and 1321 fail to compile or are otherwise missing.

from llvm-mos.

johnwbyrd avatar johnwbyrd commented on June 21, 2024

I'm surprised that so many tests pass, this early on! I vaguely recall that at least some of the tests may depend on floating point.

from llvm-mos.

mysterymath avatar mysterymath commented on June 21, 2024

I'm surprised at how much of printf seems to work, once I fixed a few key issues. LLVM does a remarkable amount of verification and asserting on the inside, so I guess it's actually kinda difficult to get really really broken stuff through that. Just regular amounts of broken so far.

Anecdote:
A bunch of garbage was getting printed after the 0 in printf("%d\n", 0);, but only on the c64. I added a bunch of diagnostic __putchar('X')-es throughout the code, and to my surprise, it looked like the garbage was after printf! I was returning back to basic after I'd walked all over its variable structure, and basic was printing the garbage.

After changing the return to BASIC to an infinite loop, seeing printf("HELLO %d %s\n", 6502, "COMPILER") print "HELLO 6502 COMPILER" was a surprisingly big thrill, given all that's involved in that actually working.

from llvm-mos.

mysterymath avatar mysterymath commented on June 21, 2024

On second though it's going to be difficult to keep a "working baseline" established while the work of repairing the test suite is underway. Fixing a compilation error can (and has) activated a hundred or so additional test cases, which can create more failures than it's reasonable to fix in the same commit. I'll be attempting to alternate between fixing compilation issues and fixing test executions so that the suit stays "as working as possible", but the actually number of failing tests will likely oscillate.

from llvm-mos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.