GithubHelp home page GithubHelp logo

llvm-mos / llvm-test-suite Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 7.0 465.65 MB

End-to-end test suite

License: Other

Python 0.03% RPC 23.68% Logos 71.82% C 3.16% C++ 1.10% CMake 0.05% Objective-C 0.01% Shell 0.02% Batchfile 0.01% Perl 0.02% LLVM 0.01% Makefile 0.02% TeX 0.01% Yacc 0.01% Rich Text Format 0.04% Roff 0.01% HTML 0.03% GAP 0.01% POV-Ray SDL 0.01% M4 0.01%

llvm-test-suite's Introduction

LLVM-MOS End-to-End Test Suite

Given its very broad scope, it's likely that quite a bit of this test suite will never work on MOS. For example, it's unlikely that, say, an unaltered 7zip can be made to fit in 64KiB.

That being said, quite a bit of the SingleSource regression suite can fit, and as much of that as possible has been made to pass. The remaining exclusions are due to unsupported features or incorrect assumptions.

Please see the LLVM testing infrastructure guide:

https://llvm.org/docs/TestSuiteGuide.html

for more information on the contents of this repository.

Running the Tests

A SDK must be installed into the arbitrary prefix <install-prefix>. llvm-lit in the the llvm-mos project should also have been built.

Use CMake to configure the SingleSource directory for MOS:

$ mkdir build
$ cd build
$ cmake -DLLVM_MOS=<install-prefix> -C../cmake/caches/Os.cmake -C../cmake/caches/target-mos.cmake -G Ninja ..

To test 65C02, use this CMake line instead:

$ cmake -DTEST_SUITE_ARCH_FLAGS="-mcpu=mos65c02" -DTEST_SUITE_SUBDIRS=SingleSource/ -DTEST_SUITE_RUN_UNDER="<install-prefix>/bin/mos-sim --cmos" -C../cmake/caches/Os.cmake -C../cmake/caches/target-mos.cmake -G Ninja ..

A variety of options can be added via -DTEST_SUITE_ARCH_FLAGS= to test different modes of the compiler. Similarly, different optimization profiles can be selected using a different CMake cache file.

Next, compile the tests:

$ ninja

Finally, run the tests:

$ <llvm-mos-build-dir>/bin/llvm-lit -v .

llvm-test-suite's People

Contributors

aaronballman avatar alinas avatar alkis avatar amy-kwan avatar artem-b avatar asl avatar bob-wilson avatar cunningbaldrick avatar davidspickett avatar ddunbar avatar df2218380513f49d8a3d896fc45740e9 avatar echristo avatar fhahn avatar gottesmm avatar homerdin avatar isanbard avatar jimlaskey avatar kbeyls avatar lattner avatar laurovenancio avatar matzeb avatar mbrukman avatar meinersbur avatar mysterymath avatar nlewycky avatar rengolin avatar resistor avatar sampo3k avatar stoklund avatar tarunprabhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

llvm-test-suite's Issues

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.