diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 10:46:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 10:48:45 +0100 |
commit | 90be05d74b0b5db64442848af530a88ffb4569ae (patch) | |
tree | 21dc22ca70c95d9b72d087c56dd89556c450d6c8 /tests/gem_gtt_speed.c | |
parent | c8ab577cbdeb5480f000f55ed2decae7b7932197 (diff) |
Convert function target attributes to pragma
We need to not only cover the function in the target=sse4.1 but the
include as well.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/gem_gtt_speed.c')
-rw-r--r-- | tests/gem_gtt_speed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_gtt_speed.c b/tests/gem_gtt_speed.c index 94b3de30..baeb8f69 100644 --- a/tests/gem_gtt_speed.c +++ b/tests/gem_gtt_speed.c @@ -51,9 +51,10 @@ static double elapsed(const struct timeval *start, } #if defined(__x86_64__) +#pragma GCC push_options +#pragma GCC target("sse4.1") #include <smmintrin.h> __attribute__((noinline)) -__attribute__((target("sse4.1"))) static void streaming_load(void *src, int len) { __m128i tmp, *s = src; @@ -73,6 +74,7 @@ static inline unsigned x86_64_features(void) { return igt_x86_features(); } +#pragma GCC pop_options #else static inline unsigned x86_64_features(void) { |