* 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
+2015-12-12 David Edelsohn <dje.gcc@gmail.com>
+
+ * 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 <bonzini@gnu.org>
PR sanitizer/68418
#endif
if (is_same<decltype(wfoo)::char_type, wchar_t>::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<decltype(foou)::char_type, char16_t>::value != true) __builtin_abort();
/* { 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 */