mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use unambiguous inline assembly to load a float variable. GNU as
silently converts 'fld' to 'flds', without taking the actual variable type into account (!), but clang's integrated assembler rightfully complains about it. Discussed with: cperciva
This commit is contained in:
parent
e194afc434
commit
079d7e43ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215823
@ -938,7 +938,7 @@ fpu_clean_state(void)
|
||||
* the x87 stack, but we don't care since we're about to call
|
||||
* fxrstor() anyway.
|
||||
*/
|
||||
__asm __volatile("ffree %%st(7); fld %0" : : "m" (dummy_variable));
|
||||
__asm __volatile("ffree %%st(7); flds %0" : : "m" (dummy_variable));
|
||||
}
|
||||
#endif /* CPU_ENABLE_SSE */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user