aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-02-29 15:26:26 -0800
committerDan Willemsen <dwillemsen@google.com>2016-02-29 15:26:26 -0800
commitb77bd796c24ed99827edde94a5fa03297e696f0e (patch)
treebcdb41926a308aca50939b70c5cb49532b4812aa
parent97750520a4ab0c4a7653a254f56ac5ac4148d37a (diff)
downloadbuild_soong-b77bd796c24ed99827edde94a5fa03297e696f0e.tar.gz
build_soong-b77bd796c24ed99827edde94a5fa03297e696f0e.tar.bz2
build_soong-b77bd796c24ed99827edde94a5fa03297e696f0e.zip
sandybridge setup: no AES_NI, AVX, MOVBE
Sandy Bridge actually doesn't have all of these options. For example AVX is only available on the higher-end SKUs (not on Celeron G550). Soong port of https://android-review.googlesource.com/204730 Change-Id: Ib595a9a6b464626d0c88525c6aaa4d69176645cc
-rw-r--r--cc/x86_64_device.go4
-rw-r--r--cc/x86_device.go4
2 files changed, 2 insertions, 6 deletions
diff --git a/cc/x86_64_device.go b/cc/x86_64_device.go
index 4ae69716..dd8972d9 100644
--- a/cc/x86_64_device.go
+++ b/cc/x86_64_device.go
@@ -76,7 +76,7 @@ var (
"-march=core-avx-i",
},
"sandybridge": []string{
- "-march=corei7-avx",
+ "-march=corei7",
},
"silvermont": []string{
"-march=slm",
@@ -125,8 +125,6 @@ func init() {
"sse4",
"sse4_1",
"sse4_2",
- "aes_ni",
- "avx",
"popcnt")
common.RegisterArchFeatures(common.X86_64, "silvermont",
"ssse3",
diff --git a/cc/x86_device.go b/cc/x86_device.go
index f3a4b08b..5ba442c6 100644
--- a/cc/x86_device.go
+++ b/cc/x86_device.go
@@ -77,7 +77,7 @@ var (
"-mfpmath=sse",
},
"sandybridge": []string{
- "-march=corei7-avx",
+ "-march=corei7",
"-mfpmath=sse",
},
"silvermont": []string{
@@ -126,8 +126,6 @@ func init() {
"sse4",
"sse4_1",
"sse4_2",
- "aes_ni",
- "avx",
"popcnt")
common.RegisterArchFeatures(common.X86, "silvermont",
"ssse3",