Merge "Add stoney ridge x86 variant"

This commit is contained in:
Treehugger Robot 2019-03-15 21:41:32 +00:00 committed by Gerrit Code Review
commit cd2e52870a
3 changed files with 33 additions and 0 deletions

View file

@ -165,6 +165,7 @@ var archVariants = map[ArchType][]string{
"sandybridge",
"silvermont",
"skylake",
"stoneyridge",
"tigerlake",
"whiskeylake",
"x86_64",
@ -179,6 +180,7 @@ var archVariants = map[ArchType][]string{
"sandybridge",
"silvermont",
"skylake",
"stoneyridge",
"tigerlake",
"whiskeylake",
},
@ -339,6 +341,17 @@ var archFeatureMap = map[ArchType]map[string][]string{
"aes_ni",
"popcnt",
},
"stoneyridge": {
"ssse3",
"sse4",
"sse4_1",
"sse4_2",
"aes_ni",
"avx",
"avx2",
"popcnt",
"movbe",
},
"tigerlake": {
"ssse3",
"sse4",
@ -455,6 +468,16 @@ var archFeatureMap = map[ArchType]map[string][]string{
"aes_ni",
"popcnt",
},
"stoneyridge": {
"ssse3",
"sse4",
"sse4_1",
"sse4_2",
"aes_ni",
"avx",
"avx2",
"popcnt",
},
"tigerlake": {
"ssse3",
"sse4",
@ -1522,12 +1545,14 @@ func getMegaDeviceConfig() []archConfig {
{"x86", "ivybridge", "", []string{"x86"}},
{"x86", "sandybridge", "", []string{"x86"}},
{"x86", "silvermont", "", []string{"x86"}},
{"x86", "stoneyridge", "", []string{"x86"}},
{"x86", "x86_64", "", []string{"x86"}},
{"x86_64", "", "", []string{"x86_64"}},
{"x86_64", "haswell", "", []string{"x86_64"}},
{"x86_64", "ivybridge", "", []string{"x86_64"}},
{"x86_64", "sandybridge", "", []string{"x86_64"}},
{"x86_64", "silvermont", "", []string{"x86_64"}},
{"x86_64", "stoneyridge", "", []string{"x86_64"}},
}
}

View file

@ -57,6 +57,9 @@ var (
"skylake": []string{
"-march=skylake",
},
"stoneyridge": []string{
"-march=bdver4",
},
}
x86_64ArchFeatureCflags = map[string][]string{

View file

@ -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"},
}
)