Skip to content

Commit eab80f7

Browse files
author
Damian Rouson
committed
Merge remote-tracking branch 'upstream/master'
2 parents 458897c + 24d0bb5 commit eab80f7

File tree

5 files changed

+37
-21
lines changed

5 files changed

+37
-21
lines changed

gcc/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-10-20 Jan Hubicka <[email protected]>
2+
3+
* x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
4+
15
2017-10-20 Jakub Jelinek <[email protected]>
26

37
* config/i386/i386.md (isa): Remove fma_avx512f.

gcc/config/i386/x86-tune-costs.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,27 +2121,27 @@ struct processor_costs intel_cost = {
21212121
COSTS_N_INSNS (1), /* cost of movzx */
21222122
8, /* "large" insn */
21232123
17, /* MOVE_RATIO */
2124-
4, /* cost for loading QImode using movzbl */
2124+
6, /* cost for loading QImode using movzbl */
21252125
{4, 4, 4}, /* cost of loading integer registers
21262126
in QImode, HImode and SImode.
21272127
Relative to reg-reg move (2). */
2128-
{4, 4, 4}, /* cost of storing integer registers */
2129-
4, /* cost of reg,reg fld/fst */
2130-
{12, 12, 12}, /* cost of loading fp registers
2128+
{6, 6, 6}, /* cost of storing integer registers */
2129+
2, /* cost of reg,reg fld/fst */
2130+
{6, 6, 8}, /* cost of loading fp registers
21312131
in SFmode, DFmode and XFmode */
2132-
{6, 6, 8}, /* cost of storing fp registers
2132+
{6, 6, 10}, /* cost of storing fp registers
21332133
in SFmode, DFmode and XFmode */
21342134
2, /* cost of moving MMX register */
2135-
{8, 8}, /* cost of loading MMX registers
2135+
{6, 6}, /* cost of loading MMX registers
21362136
in SImode and DImode */
2137-
{8, 8}, /* cost of storing MMX registers
2137+
{6, 6}, /* cost of storing MMX registers
21382138
in SImode and DImode */
21392139
2, /* cost of moving SSE register */
2140-
{8, 8, 8}, /* cost of loading SSE registers
2140+
{6, 6, 6}, /* cost of loading SSE registers
21412141
in SImode, DImode and TImode */
2142-
{8, 8, 8}, /* cost of storing SSE registers
2142+
{6, 6, 6}, /* cost of storing SSE registers
21432143
in SImode, DImode and TImode */
2144-
5, /* MMX or SSE register to integer */
2144+
2, /* MMX or SSE register to integer */
21452145
32, /* size of l1 cache. */
21462146
256, /* size of l2 cache. */
21472147
64, /* size of prefetch block */
@@ -2221,23 +2221,23 @@ struct processor_costs generic_cost = {
22212221
{4, 4, 4}, /* cost of loading integer registers
22222222
in QImode, HImode and SImode.
22232223
Relative to reg-reg move (2). */
2224-
{4, 4, 4}, /* cost of storing integer registers */
2224+
{6, 6, 6}, /* cost of storing integer registers */
22252225
4, /* cost of reg,reg fld/fst */
2226-
{12, 12, 12}, /* cost of loading fp registers
2226+
{6, 6, 12}, /* cost of loading fp registers
22272227
in SFmode, DFmode and XFmode */
2228-
{6, 6, 8}, /* cost of storing fp registers
2228+
{6, 6, 12}, /* cost of storing fp registers
22292229
in SFmode, DFmode and XFmode */
22302230
2, /* cost of moving MMX register */
2231-
{8, 8}, /* cost of loading MMX registers
2231+
{6, 6}, /* cost of loading MMX registers
22322232
in SImode and DImode */
2233-
{8, 8}, /* cost of storing MMX registers
2233+
{6, 6}, /* cost of storing MMX registers
22342234
in SImode and DImode */
22352235
2, /* cost of moving SSE register */
2236-
{8, 8, 8}, /* cost of loading SSE registers
2236+
{6, 6, 6}, /* cost of loading SSE registers
22372237
in SImode, DImode and TImode */
2238-
{8, 8, 8}, /* cost of storing SSE registers
2238+
{6, 6, 6}, /* cost of storing SSE registers
22392239
in SImode, DImode and TImode */
2240-
5, /* MMX or SSE register to integer */
2240+
6, /* MMX or SSE register to integer */
22412241
32, /* size of l1 cache. */
22422242
512, /* size of l2 cache. */
22432243
64, /* size of prefetch block */
@@ -2326,7 +2326,7 @@ struct processor_costs core_cost = {
23262326
2, /* cost of reg,reg fld/fst */
23272327
{6, 6, 8}, /* cost of loading fp registers
23282328
in SFmode, DFmode and XFmode */
2329-
{8, 6, 10}, /* cost of storing fp registers
2329+
{6, 6, 10}, /* cost of storing fp registers
23302330
in SFmode, DFmode and XFmode */
23312331
2, /* cost of moving MMX register */
23322332
{6, 6}, /* cost of loading MMX registers

libstdc++-v3/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
2017-10-20 Jonathan Wakely <[email protected]>
22

3+
* include/std/chrono (__cpp_lib_chrono): Update macro value to
4+
indicate support for P0505R0.
5+
* testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Check
6+
for updated macro.
7+
38
* include/c_global/cstddef: Define __cpp_lib_byte feature-test macro.
49
* testsuite/18_support/byte/requirements.cc: Check macro.
510

libstdc++-v3/include/std/chrono

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
214214
treat_as_floating_point<_Rep>::value;
215215
#endif // C++17
216216

217-
#if __cplusplus > 201402L
218-
# define __cpp_lib_chrono 201510
217+
#if __cplusplus >= 201703L
218+
# define __cpp_lib_chrono 201611
219219

220220
template<typename _ToDur, typename _Rep, typename _Period>
221221
constexpr __enable_if_is_duration<_ToDur>

libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020

2121
#include <chrono>
2222
#include <testsuite_common_types.h>
23+
24+
#ifndef __cpp_lib_chrono
25+
# error "Feature-test macro for constexpr <chrono> missing"
26+
#elif __cpp_lib_chrono != 201611
27+
# error "Feature-test macro for constexpr <chrono> has wrong value"
28+
#endif
29+
2330
constexpr auto test_operators()
2431
{
2532
std::chrono::nanoseconds d1 { 1 };

0 commit comments

Comments
 (0)