Commit 2da18225 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/56540 (No __SIZEOF__XXX__ macro for __float128)

	PR target/56540
	* config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
	__SIZEOF_{FPREG,FLOAT{80,128}}__ macros.

	* gcc.target/ia64/pr56540.c: New test.

From-SVN: r258138
parent b31b6053
2018-03-02 Jakub Jelinek <jakub@redhat.com>
PR target/56540
* config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
__SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
* predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED
instead of -1U in last predictors element's probability member.
......
......@@ -38,6 +38,9 @@ do { \
builtin_define("__itanium__"); \
if (TARGET_BIG_ENDIAN) \
builtin_define("__BIG_ENDIAN__"); \
builtin_define("__SIZEOF_FPREG__=16"); \
builtin_define("__SIZEOF_FLOAT80__=16");\
builtin_define("__SIZEOF_FLOAT128__=16");\
} while (0)
#ifndef SUBTARGET_EXTRA_SPECS
......
2018-03-02 Jakub Jelinek <jakub@redhat.com>
PR target/56540
* gcc.target/ia64/pr56540.c: New test.
2018-03-02 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/altivec-7-be.c: Remove VSX content, allow
......
/* PR target/56540 */
/* { dg-do compile } */
extern int a[__SIZEOF_FPREG__ != sizeof (__fpreg) ? -1 : 1];
extern int b[__SIZEOF_FLOAT80__ != sizeof (__float80) ? -1 : 1];
extern int c[__SIZEOF_FLOAT128__ != sizeof (__float128) ? -1 : 1];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment