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

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/compare-eq-dfp.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/compare-eq-d64.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/compare-rel-d128.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/compare-eq-dfp.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/compare-eq-dfp.c b/gcc/gcc/testsuite/gcc.dg/dfp/compare-eq-dfp.c
deleted file mode 100644
index 4203470a4beb926418a5ebb0e04f74051356381f..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/compare-eq-dfp.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* { dg-options "-std=gnu99 -O0" } */
-
-/* C99 6.5.9 Equality operators.
- Compare decimal float values against variables of different types. */
-
-extern void abort (void);
-static int failcnt;
-
-/* Support compiling the test to report individual failures; default is
- to abort as soon as a check fails. */
-#ifdef DBG
-#include <stdio.h>
-#define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
-#else
-#define FAILURE abort ();
-#endif
-
-_Decimal32 d32;
-_Decimal64 d64;
-_Decimal128 d128;
-
-/* Use some typedefs of decimal float types, too. */
-typedef _Decimal32 SDtype;
-typedef _Decimal64 DDtype;
-typedef _Decimal128 TDtype;
-
-SDtype d32b;
-DDtype d64b;
-TDtype d128b;
-
-void
-inits (void)
-{
- d32 = 1.0df;
- d64 = 3.0dd;
- d128 = 5.0dl;
- d32b = -1.0df;
- d64b = -4.0dd;
- d128b = -6.0dl;
-}
-
-void
-compare_dfp (void)
-{
- if ((d32 == d64) != 0) FAILURE
- if ((d32 != d128b) != 1) FAILURE
-
- if ((d64 != d32) != 1) FAILURE
- if ((d64 == d128) != 0) FAILURE
-
- if ((d128 != d32) != 1) FAILURE
- if ((d128 == d64) != 0) FAILURE
-}
-
-int
-main ()
-{
- inits ();
-
- compare_dfp ();
-
- if (failcnt)
- abort ();
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/compare-eq-d64.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/compare-rel-d128.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698