Skip to content

Always test intrinsics unconditionally #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

alexcrichton
Copy link
Member

This commit alters the test suite to unconditionally compile and run all tests,
regardless of the ambient target features enabled. This then uses a new
convenience macro, #[simd_test], to guard all tests with the appropriate
cfg_feature_enabled! and also enable the #[target_feature] appropriately.

@alexcrichton
Copy link
Member Author

@AdamNiederer and @gnzlbg this is what I was thinking we'd do for testing, always run all tests. We then only actually run tests your CPU supports.

This commit alters the test suite to unconditionally compile and run all tests,
regardless of the ambient target features enabled. This then uses a new
convenience macro, `#[simd_test]`, to guard all tests with the appropriate
`cfg_feature_enabled!` and also enable the `#[target_feature]` appropriately.
@alexcrichton alexcrichton merged commit 8dba149 into rust-lang:master Sep 26, 2017
@alexcrichton alexcrichton deleted the always-test branch September 26, 2017 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant