util: don't try to emit half-float intrinsics if avx isn't available
authorRoland Scheidegger <sroland@vmware.com>
Fri, 19 Sep 2014 14:56:04 +0000 (16:56 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 19 Sep 2014 14:58:28 +0000 (16:58 +0200)
commitf2c39dd0e19e83dac922878b00a4b871c839b609
treea8c567e7d27718c5bcb4d6e1f0c83874c104b46a
parent74d7ff2efda8e33e097ed6e3f9853fc1c8d45618
util: don't try to emit half-float intrinsics if avx isn't available

These instructions only have vex encodings, thus they can't be used without
avx. (Technically, one can still use avx-128 if avx isn't available because
the environment doesn't store the ymm registers, however I don't think llvm
can.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_cpu_detect.c