From 3cf88bffdb6dd08ad039aba64d762bcac11a1ef4 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 30 Jan 2017 21:59:37 +0000 Subject: [PATCH] PR testsuite/79293 - gcc.dg/tree-ssa/builtin-sprintf.c fails starting with r244953 gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/builtin-sprintf.c: Relax long double test. From-SVN: r245037 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cbab69fd1b1..73dfce2ba03 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-01-30 Martin Sebor + + PR testsuite/79293 + * gcc.dg/tree-ssa/builtin-sprintf.c: Relax long double test. + 2017-01-30 Martin Liska PR gcov-profile/79259 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c index cf6b9ec3dfe..eb27de6705f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c @@ -721,7 +721,12 @@ test_g_long_double (void) RNG ( 10, 15, 16, "%Lg", 1.0L / 512); /* Numbers that are not exactly representable. */ - RNG ( 3, 13, 14, "%Lg", 0.1L); + + /* The following test case results in up to 14 bytes on powerpc*-*-* + but only in 13 bytes on x86_64 (see PR testsuite/79293). Test just + for the former for simplicity. */ + RNG ( 3, 14, 15, "%Lg", 0.1L); + RNG ( 4, 13, 14, "%Lg", 0.12L); RNG ( 5, 13, 14, "%Lg", 0.123L); RNG ( 6, 13, 14, "%Lg", 0.1234L); -- 2.30.2