erasmuss22
erasmuss22

Reputation: 105

Using -msse compiler flag

I am running benchmarking software that allows the use of compiler flags, so I'm trying to use a mix of various flags to find out what works best. My question is, does each version of msse have to be enabled, or does each new version have everything that the old versions had? For example, do I need -msse2 -msse3 -msse4.1 and -msse4.2, or will -msse4.2 cover all of those?

Upvotes: 0

Views: 870

Answers (1)

Paul R
Paul R

Reputation: 213120

No, in general if you use e.g. -msse3 then that implies all the earlier SSE options (-msse, -msse2 in this case).

Upvotes: 0

Related Questions