opal/asm: fix compilation of 128-bit compare-exchange with gcc7
This commit removes eax and edx from the clobber list. Older versions of gcc handled these ok but gcc 7 does not. They are not required as eax and edx are specified in output constraints. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
родитель
641bdc4ab7
Коммит
8e0e184bc9
@ -134,7 +134,7 @@ static inline bool opal_atomic_compare_exchange_strong_128 (volatile opal_int128
|
|||||||
"sete %0 \n\t"
|
"sete %0 \n\t"
|
||||||
: "=qm" (ret), "+a" (((int64_t *)oldval)[0]), "+d" (((int64_t *)oldval)[1])
|
: "=qm" (ret), "+a" (((int64_t *)oldval)[0]), "+d" (((int64_t *)oldval)[1])
|
||||||
: "S" (addr), "b" (((int64_t *)&newval)[0]), "c" (((int64_t *)&newval)[1])
|
: "S" (addr), "b" (((int64_t *)&newval)[0]), "c" (((int64_t *)&newval)[1])
|
||||||
: "memory", "cc", "eax", "edx");
|
: "memory", "cc");
|
||||||
|
|
||||||
return (bool) ret;
|
return (bool) ret;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user