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

Side by Side Diff: gcc/gcc/testsuite/gcc.dg/builtins-44.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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/autopar/reduc-9.c ('k') | gcc/gcc/testsuite/gcc.dg/builtins-config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* { dg-do compile } */ 1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-trapping-math -fno-finite-math-only -fdump-tree-optimi zed" } */ 2 /* { dg-options "-O1 -fno-trapping-math -fno-finite-math-only -fdump-tree-optimi zed" } */
3 3
4 extern void f(int); 4 extern void f(int);
5 extern void link_error (); 5 extern void link_error ();
6 6
7 extern float x; 7 extern float x;
8 extern double y; 8 extern double y;
9 extern long double z; 9 extern long double z;
10 10
(...skipping 13 matching lines...) Expand all
24 if (__builtin_isinf (pinff) != 1) 24 if (__builtin_isinf (pinff) != 1)
25 link_error (); 25 link_error ();
26 if (__builtin_isinff (pinff) != 1) 26 if (__builtin_isinff (pinff) != 1)
27 link_error (); 27 link_error ();
28 #endif 28 #endif
29 if (__builtin_isinf (pinfl) != 1) 29 if (__builtin_isinf (pinfl) != 1)
30 link_error (); 30 link_error ();
31 if (__builtin_isinfl (pinfl) != 1) 31 if (__builtin_isinfl (pinfl) != 1)
32 link_error (); 32 link_error ();
33 33
34 if (__builtin_isinf (-pinf) != -1) 34 if (__builtin_isinf_sign (-pinf) != -1)
35 link_error (); 35 link_error ();
36 #ifndef __SPU__ 36 #ifndef __SPU__
37 if (__builtin_isinf (-pinff) != -1) 37 if (__builtin_isinf_sign (-pinff) != -1)
38 link_error ();
39 if (__builtin_isinff (-pinff) != -1)
40 link_error (); 38 link_error ();
41 #endif 39 #endif
42 if (__builtin_isinf (-pinfl) != -1) 40 if (__builtin_isinf_sign (-pinfl) != -1)
43 link_error ();
44 if (__builtin_isinfl (-pinfl) != -1)
45 link_error (); 41 link_error ();
46 42
47 if (__builtin_isinf (4.0)) 43 if (__builtin_isinf (4.0))
48 link_error (); 44 link_error ();
49 if (__builtin_isinf (4.0)) 45 if (__builtin_isinf (4.0))
50 link_error (); 46 link_error ();
51 if (__builtin_isinff (4.0)) 47 if (__builtin_isinff (4.0))
52 link_error (); 48 link_error ();
53 if (__builtin_isinf (4.0)) 49 if (__builtin_isinf (4.0))
54 link_error (); 50 link_error ();
55 if (__builtin_isinfl (4.0)) 51 if (__builtin_isinfl (4.0))
56 link_error (); 52 link_error ();
57 } 53 }
58 54
59 55
60 /* Check that all instances of link_error were subject to DCE. */ 56 /* Check that all instances of link_error were subject to DCE. */
61 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */ 57 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */
62 /* { dg-final { cleanup-tree-dump "optimized" } } */ 58 /* { dg-final { cleanup-tree-dump "optimized" } } */
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/autopar/reduc-9.c ('k') | gcc/gcc/testsuite/gcc.dg/builtins-config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698