GithubHelp home page GithubHelp logo

jroweboy / llvm-test-suite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llvm-mos/llvm-test-suite

0.0 1.0 0.0 457.53 MB

End-to-end test suite

License: Other

Shell 0.02% JavaScript 0.01% C++ 1.42% Scheme 0.01% Python 0.04% Perl 0.02% C 4.08% Emacs Lisp 0.01% Objective-C 0.01% Lua 0.01% Fortran 1.42% Tcl 0.01% R 0.01% OpenEdge ABL 0.06% Awk 0.14% Forth 0.01% Logos 92.75% CSS 0.01% Pascal 0.01% TeX 0.02%

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

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

Watchers

 avatar

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.