Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions perf-guide/src/target-feature/rustflags.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ There are two flags which can be used to enable specific vector extensions:
- Provides the compiler with a comma-separated set of instruction extensions
to enable.

**Example**: Use `-C target-features=+sse3,+avx` to enable generating instructions
**Example**: Use `-C target-feature=+sse3,+avx` to enable generating instructions
for [Streaming SIMD Extensions 3](https://en.wikipedia.org/wiki/SSE3) and
[Advanced Vector Extensions](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions).

Expand All @@ -33,9 +33,9 @@ There are two flags which can be used to enable specific vector extensions:

- Note that all CPU features are independent, and will have to be enabled individually.

**Example**: Setting `-C target-features=+avx2` will _not_ enable `fma`, even though
**Example**: Setting `-C target-feature=+avx2` will _not_ enable `fma`, even though
all CPUs which support AVX2 also support FMA. To enable both, one has to use
`-C target-features=+avx2,+fma`
`-C target-feature=+avx2,+fma`

- Some features also depend on other features, which need to be enabled for the
target instructions to be generated.
Expand Down