aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2013-03-28 14:59:14 -0700
committerJF Bastien <jfb@chromium.org>2013-03-28 14:59:14 -0700
commit37a28705d4dfdda8ecbb9aca9bc10a6fd6d80582 (patch)
tree88635a1272edb6e63b034613728c6aa44d0d9275
parentaa101e39d60f96e435fbc619558d541c93431ef6 (diff)
Target Cortex-A9 with NEON in PNaCl's LLC driver.
This is a follow-up to: https://codereview.chromium.org/12683004/ https://codereview.chromium.org/12969002/ And will enable optiomizations for our minimum platform when translating with default flags. At some point we'll probably want to specialize further by detecting, e.g. A15 and turning on VFP4, IDIV, etc... R= dschuff@chromium.org, jvoung@chromium.org Review URL: https://codereview.chromium.org/13224003
-rw-r--r--tools/llc/nacl_file.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llc/nacl_file.cpp b/tools/llc/nacl_file.cpp
index 3d56b79840..b7ecb407cd 100644
--- a/tools/llc/nacl_file.cpp
+++ b/tools/llc/nacl_file.cpp
@@ -143,7 +143,7 @@ bool AddDefaultCPU(string_vector* vec) {
break;
}
case PnaclTargetArchitectureARM_32: {
- vec->push_back("-mcpu=cortex-a8");
+ vec->push_back("-mcpu=cortex-a9");
break;
}
default:
@@ -156,7 +156,7 @@ bool AddDefaultCPU(string_vector* vec) {
#elif defined (__x86_64__)
vec->push_back("-mcpu=core2");
#elif defined (__arm__)
- vec->push_back("-mcpu=cortex-a8");
+ vec->push_back("-mcpu=cortex-a9");
#error "Unknown architecture"
#endif
return true;
@@ -195,6 +195,7 @@ string_vector* GetDefaultCommandLine() {
"-sfi-stack",
"-sfi-branch",
"-sfi-data",
+ "-mattr=+neon",
"-no-inline-jumptables",
"-float-abi=hard",
NULL };