util,gallivm: Explicitly enable/disable fma attribute.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 24 May 2016 13:36:28 +0000 (22:36 +0900)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 10 Jun 2016 12:47:35 +0000 (13:47 +0100)
commit9e8edfa19034ae69139ef10b88f958b4f58d57ea
tree03fa0133cad7b88ba0eeb364b1b969576d71935a
parent54f755fa0fda14c578022767bcef2f27b2e89707
util,gallivm: Explicitly enable/disable fma attribute.

As suggested by Roland Scheidegger.

Use the same logic as f16c, since fma requires VEX encoding.

But disable FMA on LLVM 3.3 without MCJIT.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/util/u_cpu_detect.c
src/gallium/auxiliary/util/u_cpu_detect.h