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

Side by Side Diff: build/config/arm.gni

Issue 2187563004: gn: Switch off neon for V8 arm simulator builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/v8_target_cpu.gni") 5 import("//build/config/v8_target_cpu.gni")
6 6
7 # These are primarily relevant in current_cpu == "arm" contexts, where 7 # These are primarily relevant in current_cpu == "arm" contexts, where
8 # ARM code is being compiled. But they can also be relevant in the 8 # ARM code is being compiled. But they can also be relevant in the
9 # other contexts when the code will change its behavior based on the 9 # other contexts when the code will change its behavior based on the
10 # cpu it wants to generate code for. 10 # cpu it wants to generate code for.
11 if (current_cpu == "arm" || v8_current_cpu == "arm") { 11 if (current_cpu == "arm" || v8_current_cpu == "arm") {
12 declare_args() { 12 declare_args() {
13 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 13 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
14 # platforms. 14 # platforms.
15 arm_version = 7 15 arm_version = 7
16 16
17 # The ARM floating point mode. This is either the string "hard", "soft", or 17 # The ARM floating point mode. This is either the string "hard", "soft", or
18 # "softfp". An empty string means to use the default one for the 18 # "softfp". An empty string means to use the default one for the
19 # arm_version. 19 # arm_version.
20 arm_float_abi = "" 20 arm_float_abi = ""
21 21
22 # The ARM variant-specific tuning mode. This will be a string like "armv6" 22 # The ARM variant-specific tuning mode. This will be a string like "armv6"
23 # or "cortex-a15". An empty string means to use the default for the 23 # or "cortex-a15". An empty string means to use the default for the
24 # arm_version. 24 # arm_version.
25 arm_tune = "" 25 arm_tune = ""
26 26
27 # Whether to use the neon FPU instruction set or not. 27 # Whether to use the neon FPU instruction set or not.
28 arm_use_neon = true 28 arm_use_neon = ""
29 29
30 # Whether to enable optional NEON code paths. 30 # Whether to enable optional NEON code paths.
31 arm_optionally_use_neon = false 31 arm_optionally_use_neon = false
32 32
33 # Thumb is a reduced instruction set available on some ARM processors that 33 # Thumb is a reduced instruction set available on some ARM processors that
34 # has increased code density. 34 # has increased code density.
35 arm_use_thumb = true 35 arm_use_thumb = true
36 } 36 }
37 37
38 assert(arm_float_abi == "" || arm_float_abi == "hard" || 38 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
39 arm_float_abi == "soft" || arm_float_abi == "softfp") 39 arm_float_abi == "soft" || arm_float_abi == "softfp")
40 40
41 if (arm_use_neon == "") {
42 if (current_os == "linux" && current_cpu != v8_current_cpu) {
43 # Don't use neon on V8 simulator builds as a default.
44 arm_use_neon = false
45 } else {
46 arm_use_neon = true
47 }
48 }
49
41 if (arm_version == 6) { 50 if (arm_version == 6) {
42 arm_arch = "armv6" 51 arm_arch = "armv6"
43 if (arm_tune != "") { 52 if (arm_tune != "") {
44 arm_tune = "" 53 arm_tune = ""
45 } 54 }
46 if (arm_float_abi == "") { 55 if (arm_float_abi == "") {
47 arm_float_abi = "softfp" 56 arm_float_abi = "softfp"
48 } 57 }
49 arm_fpu = "vfp" 58 arm_fpu = "vfp"
50 arm_use_thumb = false 59 arm_use_thumb = false
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 arm_fpu = "neon" 97 arm_fpu = "neon"
89 } else { 98 } else {
90 arm_fpu = "vfpv3-d16" 99 arm_fpu = "vfpv3-d16"
91 } 100 }
92 } 101 }
93 } else if (current_cpu == "arm64" || v8_current_cpu == "arm64") { 102 } else if (current_cpu == "arm64" || v8_current_cpu == "arm64") {
94 # arm64 supports only "hard". 103 # arm64 supports only "hard".
95 arm_float_abi = "hard" 104 arm_float_abi = "hard"
96 arm_use_neon = true 105 arm_use_neon = true
97 } 106 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698