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

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.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/operator-comma.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/pr31344.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/operator-cond.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.c b/gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.c
deleted file mode 100644
index 5230134f63705f540fc881310b8c8f5d6dc56496..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* { dg-options "-std=gnu99 -O0" } */
-
-/* C99 6.5.15 Conditional operator.
- Test with decimal float operands. */
-
-extern void abort (void);
-static int failcnt = 0;
-
-/* 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
-
-volatile _Decimal32 d32a, d32b, d32c;
-volatile _Decimal64 d64a, d64b, d64c;
-volatile _Decimal128 d128a, d128b, d128c;
-volatile int i, yes, no;
-
-void
-init ()
-{
- d32b = 123.456e94df;
- d64b = 12.3456789012345e383dd;
- d128b = 12345.6789012345678901e4000dl;
-
- d32c = 1.3df;
- d64c = 1.2dd;
- d128c = 1.1dl;
-
- i = 2;
- yes = 1;
- no = 0;
-}
-
-int
-main ()
-{
- init ();
-
- /* Operands and the result are all the same decimal float type. */
- d32a = yes ? d32b : d32c;
- if (d32a != d32b)
- FAILURE
- d64a = no ? d64b : d64c;
- if (d64a != d64c)
- FAILURE
- d128a = yes ? d128b : d128c;
- if (d128a != d128b)
- FAILURE
-
- /* Operand types are different. */
- d128a = yes ? d32b : d64b;
- if (d128a != d32b)
- FAILURE
- d128a = yes ? d128b : d64b;
- if (d128a != d128b)
- FAILURE
- d128a = no ? d32b : d128b;
- if (d128a != d128b)
- FAILURE
-
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/pr31344.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698