mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 13:41:32 +00:00
Add switch to turn on/off NaN canonicalization.
This commit is contained in:
@ -132,6 +132,10 @@ pub struct CompilerConfig {
|
||||
/// When enabled there can be a small amount of runtime performance overhead.
|
||||
pub full_preemption: bool,
|
||||
|
||||
/// Whether to enable spec-compliant NaN canonicalization at all places.
|
||||
/// Enabling this increases runtime overhead.
|
||||
pub nan_canonicalization: bool,
|
||||
|
||||
pub features: Features,
|
||||
|
||||
// Target info. Presently only supported by LLVM.
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -336,6 +336,7 @@ mod tests {
|
||||
simd: true,
|
||||
threads: true,
|
||||
},
|
||||
nan_canonicalization: true,
|
||||
..Default::default()
|
||||
};
|
||||
let module = compile_with_config(&module.into_vec(), config)
|
||||
@ -774,6 +775,7 @@ mod tests {
|
||||
simd: true,
|
||||
threads: true,
|
||||
},
|
||||
nan_canonicalization: true,
|
||||
..Default::default()
|
||||
};
|
||||
compile_with_config(&module.into_vec(), config)
|
||||
@ -826,6 +828,7 @@ mod tests {
|
||||
simd: true,
|
||||
threads: true,
|
||||
},
|
||||
nan_canonicalization: true,
|
||||
..Default::default()
|
||||
};
|
||||
compile_with_config(&module.into_vec(), config)
|
||||
@ -877,6 +880,7 @@ mod tests {
|
||||
simd: true,
|
||||
threads: true,
|
||||
},
|
||||
nan_canonicalization: true,
|
||||
..Default::default()
|
||||
};
|
||||
let module = compile_with_config(&module.into_vec(), config)
|
||||
@ -972,6 +976,7 @@ mod tests {
|
||||
simd: true,
|
||||
threads: true,
|
||||
},
|
||||
nan_canonicalization: true,
|
||||
..Default::default()
|
||||
};
|
||||
let module = compile_with_config(&module.into_vec(), config)
|
||||
|
Reference in New Issue
Block a user