Is there a performance penalty merging MM and YMM technologies?

General Tech Technology & Software 3 years ago

1.91K 3 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (3)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

 

I have to avoid switching between SSE and AVX. I think MMs are different technology, but had to ask. Is the next code leading to penalties?:

vmovq XMM0, RAX
pinsrw MM0, EDX, 1
vmovd XMM5, EBX
movdq2q MM1, XMM2
0 views
0 shares

profilepic.png
manpreet 3 years ago

MMX registers don’t s://forum.tuteehub.com/tag/alias">alias the low part of AVX, so there’s no state-transition hazard like there is between AVX256 and SSE.

However.

There’s really no good reason to be mixing MMX and AVX (or to use MMX at all, given that SSE is universally available and avoids several hazards associated with MMX usage, and also gives you more register names). Why are you not simply doing all of your s://forum.tuteehub.com/tag/operations">operations in AVX (or SSE?)


0 views   0 shares

profilepic.png
manpreet 3 years ago

MMX registers don’t alias the low part of AVX, so there’s no state-transition hazard like there is between AVX256 and SSE.

However.

There’s really no good reason to be mixing MMX and AVX (or to use MMX at all, given that SSE is universally available and avoids several hazards associated with MMX usage, and also gives you more register names). Why are you not simply doing all of your operations in AVX (or SSE?)


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum