summaryrefslogtreecommitdiff
path: root/src/tools/feature-options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/feature-options.h')
-rw-r--r--src/tools/feature-options.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tools/feature-options.h b/src/tools/feature-options.h
index 3b35656fc..1bd78d9b9 100644
--- a/src/tools/feature-options.h
+++ b/src/tools/feature-options.h
@@ -70,7 +70,20 @@ struct FeatureOptions : public Options {
Options::Arguments::Zero,
[this](Options *o, const std::string& arguments) {
passOptions.features.setTruncSat(false);
- });
+ })
+ .add("--enable-simd", "",
+ "Enable nontrapping float-to-int operations",
+ Options::Arguments::Zero,
+ [this](Options *o, const std::string& arguments) {
+ passOptions.features.setSIMD();
+ })
+ .add("--disable-simd", "",
+ "Disable nontrapping float-to-int operations",
+ Options::Arguments::Zero,
+ [this](Options *o, const std::string& arguments) {
+ passOptions.features.setSIMD(false);
+ })
+ ;
}
FeatureSet getFeatures() const {