1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 07:29:17 +01:00

[util] Correctly mark flag register as clobbered

This commit is contained in:
Philip Rebohle 2022-07-24 17:30:54 +02:00
parent 41ec5d2c52
commit b67d5c8c1d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -69,7 +69,8 @@ namespace dxvk::bit {
"test %2, %2;"
"cmovz %1, %0;"
: "=&r" (res), "=&r" (tmp)
: "r" (n));
: "r" (n)
: "cc");
return res;
#else
uint32_t r = 31;
@ -97,7 +98,8 @@ namespace dxvk::bit {
"test %2, %2;"
"cmovz %1, %0;"
: "=&r" (res), "=&r" (tmp)
: "r" (n));
: "r" (n)
: "cc");
return res;
#else
uint32_t lo = uint32_t(n);