From 68f7e79ea7c0451b5a890a6d193cf31a8795193e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 12 Dec 2015 13:12:10 +0000 Subject: [PATCH] pr67808.c: Add -mlong-double-128 option. * gcc.target/powerpc/pr67808.c: Add -mlong-double-128 option. * g++.dg/cpp1y/pr58708.C: Test appropriate value for size of wchar_t. From-SVN: r231583 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/cpp1y/pr58708.C | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr67808.c | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 240bd5ddd5b..1cfdb4d0a58 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-12-12 David Edelsohn + + * gcc.target/powerpc/pr67808.c: Add -mlong-double-128 option. + * g++.dg/cpp1y/pr58708.C: Test appropriate value for size of + wchar_t. + 2015-12-12 Paolo Bonzini PR sanitizer/68418 diff --git a/gcc/testsuite/g++.dg/cpp1y/pr58708.C b/gcc/testsuite/g++.dg/cpp1y/pr58708.C index 3f39db8cfd4..b46e54bbca3 100644 --- a/gcc/testsuite/g++.dg/cpp1y/pr58708.C +++ b/gcc/testsuite/g++.dg/cpp1y/pr58708.C @@ -50,8 +50,13 @@ main() #endif if (is_same::value != true) __builtin_abort(); if (sizeof(wfoo.chars)/sizeof(wchar_t) != 2) __builtin_abort(); +#if __SIZEOF_WCHAR_T__ == 2 + if (wfoo.chars[0] != 258) __builtin_abort(); + if (wfoo.chars[1] != 772) __builtin_abort(); +#else if (wfoo.chars[0] != 16909060) __builtin_abort(); if (wfoo.chars[1] != 84281096) __builtin_abort(); +#endif auto foou = u"\x0102\x0304\x0506\x0708"_foo; if (is_same::value != true) __builtin_abort(); diff --git a/gcc/testsuite/gcc.target/powerpc/pr67808.c b/gcc/testsuite/gcc.target/powerpc/pr67808.c index 24f01925404..fdf40df4607 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr67808.c +++ b/gcc/testsuite/gcc.target/powerpc/pr67808.c @@ -2,7 +2,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ -/* { dg-options "-O1 -mvsx -mlra -mcpu=power7" } */ +/* { dg-options "-O1 -mvsx -mlra -mcpu=power7 -mlong-double-128" } */ /* PR 67808: LRA ICEs on simple double to long double conversion test case */ -- 2.30.2