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:
parent
6d80b0b4ba
commit
2edf47edf0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue