diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2018-07-25 20:27:48 +0300 |
---|---|---|
committer | Grazvydas Ignotas <notasas@gmail.com> | 2018-08-23 00:34:32 +0300 |
commit | 2edf47edf08c63eb2b8f809a5be387d00da193e5 (patch) | |
tree | 4a7839b21588f0de921d54b87b9ec0476f99ec1c | |
parent | 6d80b0b4bae53efbfa4b654a44c6279f5cc9402c (diff) |
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>
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_tri.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index cec6198ec63..1852ec05d56 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -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); |