diff mbox

Committed: fix gcc.dg/debug/debug-1.c, debug-2.c for mmix-knuth-mmixware

Message ID alpine.BSF.2.02.1501042244320.63574@arjuna.pair.com
State New
Headers show

Commit Message

Hans-Peter Nilsson Jan. 5, 2015, 3:45 a.m. UTC
Another fix for a non-regression FAIL.  See the elaborate comment for
MIPS, updated to cover mmix-knuth-mmixware.

	* gcc.dg/debug/debug-1.c: Pass -fno-if-conversion for
	mmix-knuth-mmixware for the same reason as for MIPS.
	* gcc.dg/debug/debug-2.c: Ditto.


brgds, H-P
diff mbox

Patch

Index: gcc.dg/debug/debug-1.c
===================================================================
--- gcc.dg/debug/debug-1.c	(revision 215610)
+++ gcc.dg/debug/debug-1.c	(working copy)
@@ -17,8 +17,10 @@ 
    these two instructions, removing the last use of P and xyzzy.

    Everything is behaving as expected in this scenario, so we avoid
-   using conditional moves for this test.  */
-/* { dg-options "-dA -fno-if-conversion" { target mips*-*-* } } */
+   using conditional moves for this test.
+
+   Similar for MMIX, with the payload insns being "LDO $0,p; ZSNZ $0,$0,2".  */
+/* { dg-options "-dA -fno-if-conversion" { target mips*-*-* mmix-knuth-mmixware } } */
 /* { dg-final { scan-assembler "xyzzy" } } */

 long p;
Index: gcc.dg/debug/debug-2.c
===================================================================
--- gcc.dg/debug/debug-2.c	(revision 215610)
+++ gcc.dg/debug/debug-2.c	(working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-do compile } */
 /* { dg-options "-dA" } */
 /* See the comment in debug-1.c.  */
-/* { dg-options "-dA -fno-if-conversion" { target mips*-*-* } } */
+/* { dg-options "-dA -fno-if-conversion" { target mips*-*-* mmix-knuth-mmixware } } */
 /* { dg-final { scan-assembler "xyzzy" } } */

 long p;