aboutsummaryrefslogtreecommitdiffstats
path: root/cc/config
diff options
context:
space:
mode:
authorBenjamin Gordon <bmgordon@google.com>2019-02-14 10:59:48 -0700
committerBenjamin Gordon <bmgordon@google.com>2019-03-15 11:04:48 -0600
commit87e7f2f6851cc511913600c2c1cc9ab5fc0556ab (patch)
tree0a57b365075f9a3222784b7d6908454401c6ba7a /cc/config
parent7487fb54feb9a21e0ba774734556a38aedf4aef5 (diff)
downloadbuild_soong-87e7f2f6851cc511913600c2c1cc9ab5fc0556ab.tar.gz
build_soong-87e7f2f6851cc511913600c2c1cc9ab5fc0556ab.tar.bz2
build_soong-87e7f2f6851cc511913600c2c1cc9ab5fc0556ab.zip
Add stoney ridge x86 variant
Bug: 124445930 Test: compile and deploy to grunt Change-Id: Ie63217c7c68f5688bf070cbabf9ea5a1b82d3acc
Diffstat (limited to 'cc/config')
-rw-r--r--cc/config/x86_64_device.go3
-rw-r--r--cc/config/x86_device.go5
2 files changed, 8 insertions, 0 deletions
diff --git a/cc/config/x86_64_device.go b/cc/config/x86_64_device.go
index 8a86db45..0f0420f7 100644
--- a/cc/config/x86_64_device.go
+++ b/cc/config/x86_64_device.go
@@ -57,6 +57,9 @@ var (
"skylake": []string{
"-march=skylake",
},
+ "stoneyridge": []string{
+ "-march=bdver4",
+ },
}
x86_64ArchFeatureCflags = map[string][]string{
diff --git a/cc/config/x86_device.go b/cc/config/x86_device.go
index b3d6a4dd..500014e9 100644
--- a/cc/config/x86_device.go
+++ b/cc/config/x86_device.go
@@ -75,6 +75,10 @@ var (
"-march=skylake",
"-mfpmath=sse",
},
+ "stoneyridge": []string{
+ "-march=bdver4",
+ "-mfpmath=sse",
+ },
}
x86ArchFeatureCflags = map[string][]string{
@@ -83,6 +87,7 @@ var (
"sse4_1": []string{"-msse4.1"},
"sse4_2": []string{"-msse4.2"},
"avx": []string{"-mavx"},
+ "avx2": []string{"-mavx2"},
"aes_ni": []string{"-maes"},
}
)