Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/signbit-1.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/pr41049.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/struct-layout-1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/dfp/signbit-1.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/signbit-1.c b/gcc/gcc/testsuite/gcc.dg/dfp/signbit-1.c
deleted file mode 100644
index cde28f9ba8471399813c4e2a4ba5ea822895148a..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/signbit-1.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* { dg-options "-O0 -std=gnu99" } */
-
-/* Decimal float versions of __builtin_signbit. */
-
-extern void abort (void);
-int failures;
-
-#ifdef DBG
-extern int printf (const char *, ...);
-#define FAILURE { printf ("failed at line %d\n", __LINE__); failures++; }
-#else
-#define FAILURE abort ();
-#endif
-
-#define CHECK32(D,I) \
- if ((__builtin_signbitd32 (D) != 0) != I) FAILURE
-
-#define CHECK64(D,I) \
- if ((__builtin_signbitd64 (D) != 0) != I) FAILURE
-
-#define CHECK128(D,I) \
- if ((__builtin_signbitd128 (D) != 0) != I) FAILURE
-
-/* Prevent the compiler from folding the calls at compile time. */
-volatile _Decimal32 sd;
-volatile _Decimal64 dd;
-volatile _Decimal128 td;
-
-int
-main ()
-{
- sd = 1.9df; CHECK32 (sd, 0)
- sd = -5.3df; CHECK32 (sd, 1)
- sd = 0.0df; CHECK32 (sd, 0)
- sd = -0.0df; CHECK32 (sd, 1)
-
- dd = 1.9dd; CHECK64 (dd, 0)
- dd = -5.3dd; CHECK64 (dd, 1)
- dd = 0.0dd; CHECK64 (dd, 0)
- dd = -0.0dd; CHECK64 (dd, 1)
-
- td = 1.9dl; CHECK128 (td, 0)
- td = -5.3dl; CHECK128 (td, 1)
- td = 0.0dl; CHECK128 (td, 0)
- td = -0.0dl; CHECK128 (td, 1)
-
- if (failures != 0)
- abort ();
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/pr41049.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/struct-layout-1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698