llvmpipe: add cc clobber to inline asm

The bsr instruction modifies flags, so that needs to be indicated to the
compiler. No effect on generated code, but still needed for correctness.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Grazvydas Ignotas 2018-07-25 20:27:48 +03:00
parent 6d80b0b4ba
commit 2edf47edf0
1 changed files with 2 additions and 1 deletions

View File

@ -734,7 +734,8 @@ floor_pot(uint32_t n)
__asm__("bsr %1,%0"
: "=r" (n)
: "rm" (n));
: "rm" (n)
: "cc");
return 1 << n;
#else
n |= (n >> 1);