From e469b4a1d2a2ca65333b8691c9ecce66c6250bed Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Fri, 10 Aug 2018 20:54:37 +0200 Subject: [PATCH] explain how to run the verification tests --- verify/readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/verify/readme.md b/verify/readme.md index b3e6f5ed5..a04433e22 100644 --- a/verify/readme.md +++ b/verify/readme.md @@ -1,5 +1,22 @@ # Machine code verification +## Quick start + +To run the verification tests run: + +``` +cargo test --release +``` + +on this crate, eventually passing the required target features via `RUSTFLAGS`. +For example, `RUSTFLAGS="-C target-feature=+avx2"`. + +This crate only contains tests, and the tests only run in `--release` mode. +Therefore, building this crate with anything different from `cargo test +--release` does not make much sense. + +## How it works + This crates verifies the machine code generated for some of the portable packed vector APIs by disassembling the API at run-time and comparing the machine code generated against the desired one for a particular target and target features.