diff mbox

committed: testsuite patches (11/14): Don't expect null pointer check elimination for target { keeps_null_pointer_checks }

Message ID 20130720024129.l4jnpy3y0wkok40k-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke July 20, 2013, 6:41 a.m. UTC
Tested for avr with --target_board=atmega128-sim and native on  
i686-pc-linuc-gnu.

Committed as obvious.
2013-07-17  Joern Rennecke <joern.rennecke@embecosm.com>

	* gcc.dg/tree-ssa/pr21090.c: Do vrp1 scan check only for
	target { ! keeps_null_pointer_checks }.
	* gcc.dg/tree-ssa/unreachable.c: Do optimized scan check only for
	target { ! keeps_null_pointer_checks }.
diff mbox

Patch

Index: gcc.dg/tree-ssa/pr21090.c
===================================================================
--- gcc.dg/tree-ssa/pr21090.c	(revision 201032)
+++ gcc.dg/tree-ssa/pr21090.c	(working copy)
@@ -19,5 +19,5 @@  foo (int a)
     return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" } } */
+/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" { target { ! keeps_null_pointer_checks } } } } */
 /* { dg-final { cleanup-tree-dump "vrp1" } } */
Index: gcc.dg/tree-ssa/unreachable.c
===================================================================
--- gcc.dg/tree-ssa/unreachable.c	(revision 201032)
+++ gcc.dg/tree-ssa/unreachable.c	(working copy)
@@ -11,5 +11,5 @@  main()
     return 1;
   return 0;
 }
-/* { dg-final { scan-tree-dump-not "bad_boy" "optimized"} } */
+/* { dg-final { scan-tree-dump-not "bad_boy" "optimized" { target { ! keeps_null_pointer_checks } } } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */