vyre-conform 0.1.0

Conformance suite for vyre backends — proves byte-identical output to CPU reference
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::spec::types::ParityFailure;
use std::fs;
use std::io::{self, Write};
use std::path::PathBuf;
use std::sync::atomic::{AtomicU64, Ordering};
use std::time::{SystemTime, UNIX_EPOCH};
#[cfg(loom)]
use loom::sync::Mutex as LoomMutex;
use super::hex::*;

/// Load regressions for a specific version of an operation.
///
/// Returns regressions tagged with the version they were recorded under.
#[inline]
pub fn load_versioned(op_id: &str, version: u32) -> Vec<(String, Vec<u8>)> {
    let dir = versioned_regression_dir(op_id, version);
    load_from_dir(&dir, &format!("v{version}"))
}