Files
wasmtime/tests/cfg
Jakob Stoklund Olesen 8483dc1085 Add an explainer mode to filecheck.
The -c flag to 'cton-util filecheck' will now print out a description of how
the directives are matching the input.

This explanation is also printed when a match fails.
2016-09-09 17:08:29 -07:00
..
2016-09-09 17:08:29 -07:00
2016-07-14 13:43:11 -07:00
2016-09-09 11:09:54 -07:00

CFG tests
============

This directory contains test cases for the Cretonne cfg printer.

Each test case consists of a `foo.cton` input file annotated with its expected connections.
Annotations are comments of the form: `ebbx:insty -> ebbz` where ebbx is connected to ebbz via
a branch or jump instruction at line y. Instructions are labeled by line number starting from zero: `inst0` .. `instn`.


Each input file is run through the `cton-util print-cfg` command and the
output is compared against the specially formatted comments to ensure that
expected connections exist. This scheme allows for changes to graph style
without the need to update tests.