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

View file

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

View file

@ -75,6 +75,10 @@ var (
"-march=skylake", "-march=skylake",
"-mfpmath=sse", "-mfpmath=sse",
}, },
"stoneyridge": []string{
"-march=bdver4",
"-mfpmath=sse",
},
} }
x86ArchFeatureCflags = map[string][]string{ x86ArchFeatureCflags = map[string][]string{
@ -83,6 +87,7 @@ var (
"sse4_1": []string{"-msse4.1"}, "sse4_1": []string{"-msse4.1"},
"sse4_2": []string{"-msse4.2"}, "sse4_2": []string{"-msse4.2"},
"avx": []string{"-mavx"}, "avx": []string{"-mavx"},
"avx2": []string{"-mavx2"},
"aes_ni": []string{"-maes"}, "aes_ni": []string{"-maes"},
} }
) )