Committed: Adjust gcc.dg/tree-ssa/20040204-1.c and loop-1.c for CRIS and MMIX.

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Sat Oct 22 20:28:00 GMT 2005


Tested cris-elf, mmix-knuth-mmixware and with sh-elf as innocent
bystander.

	* gcc.dg/tree-ssa/20040204-1.c: Adjust XFAIL for CRIS and MMIX.
	* gcc.dg/tree-ssa/loop-1.c: Adjust "call foo"-scanning for CRIS.

Index: gcc.dg/tree-ssa/20040204-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c,v
retrieving revision 1.4
diff -p -u -r1.4 20040204-1.c
--- gcc.dg/tree-ssa/20040204-1.c	31 Mar 2005 18:34:15 -0000	1.4
+++ gcc.dg/tree-ssa/20040204-1.c	22 Oct 2005 20:18:41 -0000
@@ -33,5 +33,5 @@ void test55 (int x, int y)
    that the && should be emitted (based on BRANCH_COST).  Fix this
    by teaching dom to look through && and register all components
    as true.  */
-/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! powerpc*-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! "powerpc*-*-* cris-*-* mmix-*-*" } } } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */
Index: gcc.dg/tree-ssa/loop-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c,v
retrieving revision 1.12
diff -p -u -r1.12 loop-1.c
--- gcc.dg/tree-ssa/loop-1.c	5 Aug 2005 15:51:39 -0000	1.12
+++ gcc.dg/tree-ssa/loop-1.c	22 Oct 2005 20:18:41 -0000
@@ -34,10 +34,12 @@ void xxx(void)
 /* The SH targets always use separate instructions to load the address
    and to do the actual call - bsr is only generated by link time
    relaxation.  */
+/* CRIS keeps the address in a register.  */
 
-/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* } } } */
+/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* } } } */
 /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */
 /* { dg-final { scan-assembler-times "= foo"  5 { target ia64*-*-* } } } */
 /* { dg-final { scan-assembler-times "jsr|blink\ttr?,r18"  5 { target sh*-*-* } } } */
+/* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */
 
 
brgds, H-P



More information about the Gcc-patches mailing list