This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch PR44576]: Don't do further analysis if we could know prefetching is not benefitial


> -c doesn't belong into dg-options.

Thanks. Here is an updated version.


2010-07-11  Christian Borntraeger  <borntraeger.de.ibm.com>

        * gcc.dg/tree-ssa/prefetch-empty.c: New test.

Index: gcc/testsuite/gcc.dg/tree-ssa/prefetch-empty.c
===================================================================
*** /dev/null
--- gcc/testsuite/gcc.dg/tree-ssa/prefetch-empty.c
***************
*** 0 ****
--- 1,24 ----
+ /* This test case causes tree_num_loop_insns to return 0.  This has created
+    problems when this value was used as divisor.  */
+ /* { dg-do compile } */
+ /* { dg-options "-O1 -fprefetch-loop-arrays -march=core2" { target { i?86-*-* x86_64-*-* } } } */
+ /* { dg-options "-O1 -fprefetch-loop-arrays -march=z10" { target { s390x-*-* } } } */
+ 
+ 
+ typedef union tree_node *tree;
+ enum tree_code
+ {
+   E1
+ };
+ union tree_node
+ {
+   enum tree_code code:8;
+ };
+ void
+ build_def_use (tree exp)
+ {
+   while (exp)
+     switch (((enum tree_code) (exp)->code))
+       {
+       }
+ }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]