summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2018-07-25 20:27:48 +0300
committerGrazvydas Ignotas <[email protected]>2018-08-23 00:34:32 +0300
commit2edf47edf08c63eb2b8f809a5be387d00da193e5 (patch)
tree4a7839b21588f0de921d54b87b9ec0476f99ec1c /src/gallium/drivers/llvmpipe
parent6d80b0b4bae53efbfa4b654a44c6279f5cc9402c (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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c3
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);