Commit 3224e43e authored by fbarchard@google.com's avatar fbarchard@google.com

Add a test that indicates the compiler is able to generate avx2 code.

BUG=none
TESTED=out\release_x64\libyuv_unittest --gtest_filter=libyuvTest.TestCompilerHasAVX2
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/24439004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1074 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 4667addf
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1069
Version: 1074
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1069
#define LIBYUV_VERSION 1074
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -51,6 +51,15 @@ TEST_F(libyuvTest, TestCpuHas) {
printf("Has MIPS DSPR2 %x\n", has_mips_dspr2);
}
TEST_F(libyuvTest, TestCompilerHasAVX2) {
#if defined(GCC_HAS_AVX2) || defined(CLANG_HAS_AVX2) || \
defined(VISUALC_HAS_AVX2)
printf("Has AVX2 1\n");
#else
printf("Has AVX2 0\n");
#endif
}
#if defined(__i386__) || defined(__x86_64__) || \
defined(_M_IX86) || defined(_M_X64)
TEST_F(libyuvTest, TestCpuId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment