+2017-02-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/79487
+ * real.c (real_from_integer): Call real_convert even for decimal.
+
2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR target/79421
if (fmt.decimal_p ())
decimal_from_integer (r);
- else if (fmt)
+ if (fmt)
real_convert (r, fmt, r);
}
+2017-02-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/79487
+ * gcc.dg/dfp/pr79487.c: New test.
+ * c-c++-common/ubsan/float-cast-overflow-8.c (TEST): Revert
+ 2017-02-13 change.
+
2017-01-14 Carl Love <cel@us.ibm.com>
* gcc.target/powerpc/vsx-builtin-3.c: Add missing test case for the
#define TEST(type1, type2) \
if (type1##_MIN) \
{ \
- volatile type2 min = type1##_MIN; \
+ type2 min = type1##_MIN; \
type2 add = -1.0; \
while (1) \
{ \
volatile type1 tem3 = cvt_##type1##_##type2 (-1.0f); \
} \
{ \
- volatile type2 max = type1##_MAX; \
+ type2 max = type1##_MAX; \
type2 add = 1.0; \
while (1) \
{ \
--- /dev/null
+/* PR target/79487 */
+/* { dg-options "-O2" } */
+
+int
+main ()
+{
+ _Decimal32 a = (-9223372036854775807LL - 1LL);
+ _Decimal32 b = -9.223372E+18DF;
+ if (b - a != 0.0DF)
+ __builtin_abort ();
+ _Decimal64 c = (-9223372036854775807LL - 1LL);
+ _Decimal64 d = -9.223372036854776E+18DD;
+ if (d - c != 0.0DD)
+ __builtin_abort ();
+ return 0;
+}