Patchwork [alpha] : Fix g++.dg/opt/devirt2.C, use specific scan pattern for alpha*-*-*

login
register
mail settings
Submitter Uros Bizjak
Date Aug. 6, 2011, 9:40 p.m.
Message ID <CAFULd4Z60DCv=Bn2vioPV-EWA8EHhciKDXE40cAL4UdAJ2XRbg@mail.gmail.com>
Download mbox | patch
Permalink /patch/108799/
State New
Headers show

Comments

Uros Bizjak - Aug. 6, 2011, 9:40 p.m.
Hello!

2011-08-06  Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/48727
	* g++.dg/opt/devirt2.C: Use specific pattern for alpha*-*-*.

Tested on alphaev68-pc-linux-gnu, committed to mainline SVN.

Uros.

Patch

Index: g++.dg/opt/devirt2.C
===================================================================
--- g++.dg/opt/devirt2.C	(revision 177536)
+++ g++.dg/opt/devirt2.C	(working copy)
@@ -1,10 +1,13 @@ 
 // { dg-do compile }
 // { dg-options "-O2" }
+// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { alpha*-*-* hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } }
 // The IA64 and HPPA compilers generate external declarations in addition
 // to the call so those scans need to be more specific.
-// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } }
 // { dg-final { scan-assembler-times "br\[^\n\]*xyzzy" 2 { target ia64*-*-hpux* } } }
 // { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r" 2 { target hppa*-*-* } } }
+// If assembler supports explicit relocation directives, the alpha compiler generates
+// literal/lituse_jsr pairs, so the scans need to be more specific.
+// { dg-final { scan-assembler-times "jsr\[^\n\]*xyzzy" 2 { target alpha*-*-* } } }
 // Unless the assembler supports -relax, the 32-bit SPARC compiler generates
 // sethi/jmp instead of just call, so the scans need to be more specific.
 // With subexpressions, Tcl regexp -inline -all returns both the complete