Generic x86_64 code compiled with GCC uses non deprecated mtune flags (#13022)
fixes #12928
This commit is contained in:
parent
76b9c56110
commit
78577c0a90
2 changed files with 15 additions and 6 deletions
|
@ -49,11 +49,18 @@
|
||||||
"vendor": "generic",
|
"vendor": "generic",
|
||||||
"features": [],
|
"features": [],
|
||||||
"compilers": {
|
"compilers": {
|
||||||
"gcc": {
|
"gcc": [
|
||||||
"versions": "4:",
|
{
|
||||||
|
"versions": "4.2.0:",
|
||||||
|
"name": "x86-64",
|
||||||
|
"flags": "-march={name} -mtune=generic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"versions": "4.0:4.1.2",
|
||||||
"name": "x86-64",
|
"name": "x86-64",
|
||||||
"flags": "-march={name} -mtune={name}"
|
"flags": "-march={name} -mtune={name}"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nocona": {
|
"nocona": {
|
||||||
|
|
|
@ -190,7 +190,9 @@ def test_target_json_schema():
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('target_name,compiler,version,expected_flags', [
|
@pytest.mark.parametrize('target_name,compiler,version,expected_flags', [
|
||||||
('x86_64', 'gcc', '4.9.3', '-march=x86-64 -mtune=x86-64'),
|
('x86_64', 'gcc', '4.9.3', '-march=x86-64 -mtune=generic'),
|
||||||
|
('x86_64', 'gcc', '4.2.0', '-march=x86-64 -mtune=generic'),
|
||||||
|
('x86_64', 'gcc', '4.1.1', '-march=x86-64 -mtune=x86-64'),
|
||||||
('nocona', 'gcc', '4.9.3', '-march=nocona -mtune=nocona'),
|
('nocona', 'gcc', '4.9.3', '-march=nocona -mtune=nocona'),
|
||||||
('nehalem', 'gcc', '4.9.3', '-march=nehalem -mtune=nehalem'),
|
('nehalem', 'gcc', '4.9.3', '-march=nehalem -mtune=nehalem'),
|
||||||
('nehalem', 'gcc', '4.8.5', '-march=corei7 -mtune=corei7'),
|
('nehalem', 'gcc', '4.8.5', '-march=corei7 -mtune=corei7'),
|
||||||
|
|
Loading…
Reference in a new issue