summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-29 14:44:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-29 14:50:19 +0000
commitbc849885ddaf0964da7cc981856ccab561c5b7a9 (patch)
tree4db107ff3c0e2dedc80d3d6cc2e3bc8fd5476a31 /tests
parente6d19e8f713760aa265c4cad1e028dcfa9f9104e (diff)
igt/gem_gtt_speed: Spare clang the embarrassment
Clang pretends to be GCC and then dies on GCC pragma. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_flush.c2
-rw-r--r--tests/gem_gtt_speed.c2
-rw-r--r--tests/gem_mmap_gtt.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_exec_flush.c b/tests/gem_exec_flush.c
index 6b46f9c9..c7b2c48c 100644
--- a/tests/gem_exec_flush.c
+++ b/tests/gem_exec_flush.c
@@ -40,7 +40,7 @@ IGT_TEST_DESCRIPTION("Basic check of flushing after batches");
#define BASIC 256
#define MOVNT 512
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__clang__)
#pragma GCC push_options
#pragma GCC target("sse4.1")
#include <smmintrin.h>
diff --git a/tests/gem_gtt_speed.c b/tests/gem_gtt_speed.c
index baeb8f69..3d726c4e 100644
--- a/tests/gem_gtt_speed.c
+++ b/tests/gem_gtt_speed.c
@@ -50,7 +50,7 @@ static double elapsed(const struct timeval *start,
return (1e6*(end->tv_sec - start->tv_sec) + (end->tv_usec - start->tv_usec))/loop;
}
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__clang__)
#pragma GCC push_options
#pragma GCC target("sse4.1")
#include <smmintrin.h>
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c
index 22e35f03..00fe905d 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -466,7 +466,7 @@ test_huge_bo(int fd, int huge, int tiling)
munmap(linear_pattern, PAGE_SIZE);
}
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__clang__)
#define MOVNT 512
#pragma GCC push_options