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
3 # found in the LICENSE file.
5 if (current_cpu == "arm") {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
11 # The ARM floating point mode. This is either the string "hard", "soft", or
12 # "softfp". An empty string means to use the default one for the
16 # The ARM variant-specific tuning mode. This will be a string like "armv6"
17 # or "cortex-a15". An empty string means to use the default for the
21 # Whether to use the neon FPU instruction set or not.
24 # Whether to enable optional NEON code paths.
25 arm_optionally_use_neon = false
29 arm_optionally_use_neon = true
34 arm_optionally_use_neon = false
38 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
39 arm_float_abi == "soft" || arm_float_abi == "softfp")
41 if (arm_version == 6) {
46 if (arm_float_abi == "") {
47 arm_float_abi = "softfp"
51 # Thumb is a reduced instruction set available on some ARM processors that
52 # has increased code density.
54 } else if (arm_version == 7) {
57 arm_tune = "generic-armv7-a"
60 if (arm_float_abi == "") {
61 arm_float_abi = "softfp"