arsenm
arsenm

Reputation: 2933

Do the higher level SSE flags imply the lower ones in GCC / clang?

For example, if you use -msse4, does this imply that it will also use -mssse3, -msse3, -msse2 and so on or do you have to explicitly add those flags as well?

Upvotes: 3

Views: 833

Answers (1)

Paul R
Paul R

Reputation: 213059

You only need the highest level switch, e.g. -mssse3 implies -msse3, -msse2 etc. It doesn't cause any problems if you add the lower level switches, but they are redundant.

Upvotes: 5

Related Questions