home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,539 of 4,675   
   Robert Redelmeier to Robert Prins   
   Re: Converting MMX to XMM [was: XSAVE ar   
   16 Sep 18 20:36:43   
   
   From: redelm@ev1.net.invalid   
      
   Robert Prins  wrote in part:   
   > On 2018-09-15 18:09, Robert Redelmeier wrote:   
   >> I have some confidence that even MS w7-64 preserves XMM   
   >> registers across syscalls & task swaps.  However, your hot   
   >> silicon also has YMM and may need a VEX prefix to correctly   
   >> do XMM (overflow wrap).   
   >   
   > W7(-64) supports AVX since SP1, so that's not the problem,   
   > and all my code is either using legacy MMX registers or   
   > VEX encoded instructions using the XMM/YMM registers.   
   >   
   > What is "overflow wrap", and how would I detect it,   
   > and would this not also affect MMX instructions?   
      
   Every transition [upwards] in wordsize presents the machine   
   designer decisions of what to do with the new extra bits.   
   Essentially to use them for greater precision or parallel-wise.   
      
   Your YMM registers may not always behave exactly as XMM,   
   especially since they are wider.  Do they wrap or saturate on   
   overflow, or go into higher bits?  There may be a control word   
   to set the desired behaviour.  Or use a prefix to distinguish   
   XMM from YMM .  MMX is deep legacy and will be coded as such.   
      
   -- Robert R   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca