mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
util: (trivial) fix asm input/output list for fxsave
Otherwise gcc might do very unsafe optimizations, spotted by Uros Bizjak. Hopefully this time it's finally right?
This commit is contained in:
parent
c88783047e
commit
836098f6b2
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ static INLINE boolean sse2_has_daz(void)
|
|||
|
||||
fxarea.mxcsr_mask = 0;
|
||||
#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
|
||||
__asm __volatile ("fxsave %0" :: "m" (fxarea));
|
||||
__asm __volatile ("fxsave %0" : "+m" (fxarea));
|
||||
#elif (defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL))
|
||||
_fxsave(&fxarea);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue