Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: unit_test/cpu_test.cc

Issue 2418763006: Add f16c (halffloat) cpuid (Closed)
Patch Set: bump version to r1627 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/planar_functions.cc ('k') | util/cpuid.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 27 matching lines...) Expand all
38 int has_avx = TestCpuFlag(kCpuHasAVX); 38 int has_avx = TestCpuFlag(kCpuHasAVX);
39 printf("Has AVX %x\n", has_avx); 39 printf("Has AVX %x\n", has_avx);
40 int has_avx2 = TestCpuFlag(kCpuHasAVX2); 40 int has_avx2 = TestCpuFlag(kCpuHasAVX2);
41 printf("Has AVX2 %x\n", has_avx2); 41 printf("Has AVX2 %x\n", has_avx2);
42 int has_erms = TestCpuFlag(kCpuHasERMS); 42 int has_erms = TestCpuFlag(kCpuHasERMS);
43 printf("Has ERMS %x\n", has_erms); 43 printf("Has ERMS %x\n", has_erms);
44 int has_fma3 = TestCpuFlag(kCpuHasFMA3); 44 int has_fma3 = TestCpuFlag(kCpuHasFMA3);
45 printf("Has FMA3 %x\n", has_fma3); 45 printf("Has FMA3 %x\n", has_fma3);
46 int has_avx3 = TestCpuFlag(kCpuHasAVX3); 46 int has_avx3 = TestCpuFlag(kCpuHasAVX3);
47 printf("Has AVX3 %x\n", has_avx3); 47 printf("Has AVX3 %x\n", has_avx3);
48 int has_f16c = TestCpuFlag(kCpuHasF16C);
49 printf("Has F16C %x\n", has_f16c);
48 int has_mips = TestCpuFlag(kCpuHasMIPS); 50 int has_mips = TestCpuFlag(kCpuHasMIPS);
49 printf("Has MIPS %x\n", has_mips); 51 printf("Has MIPS %x\n", has_mips);
50 int has_dspr2 = TestCpuFlag(kCpuHasDSPR2); 52 int has_dspr2 = TestCpuFlag(kCpuHasDSPR2);
51 printf("Has DSPR2 %x\n", has_dspr2); 53 printf("Has DSPR2 %x\n", has_dspr2);
52 } 54 }
53 55
54 TEST_F(LibYUVBaseTest, TestCpuCompilerEnabled) { 56 TEST_F(LibYUVBaseTest, TestCpuCompilerEnabled) {
55 #if defined(__aarch64__) 57 #if defined(__aarch64__)
56 printf("Arm64 build\n"); 58 printf("Arm64 build\n");
57 #endif 59 #endif
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/juno.txt")); 132 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("../../unit_test/testdata/juno.txt"));
131 } else { 133 } else {
132 printf("WARNING: unable to load \"../../unit_test/testdata/arm_v7.txt\"\n"); 134 printf("WARNING: unable to load \"../../unit_test/testdata/arm_v7.txt\"\n");
133 } 135 }
134 #if defined(__linux__) && defined(__ARM_NEON__) 136 #if defined(__linux__) && defined(__ARM_NEON__)
135 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("/proc/cpuinfo")); 137 EXPECT_EQ(kCpuHasNEON, ArmCpuCaps("/proc/cpuinfo"));
136 #endif 138 #endif
137 } 139 }
138 140
139 } // namespace libyuv 141 } // namespace libyuv
OLDNEW
« no previous file with comments | « source/planar_functions.cc ('k') | util/cpuid.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698