Patchwork [committed] Adjust scan assembler check in gfortran.dg/bind_c_array_params_2.f90 for hppa*-*-hpux*

login
register
mail settings
Submitter John David Anglin
Date Sept. 16, 2012, 4:49 p.m.
Message ID <20120916164911.GA27412@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/184132/
State New
Headers show

Comments

John David Anglin - Sept. 16, 2012, 4:49 p.m.
This fixes the assembler scan on hppa*-*-hpux*.  Tested on hppa2.0w-hp-hpux11
and hppa64-hp-hpux11.11.  Committed to trunk.

Dave

Patch

Index: gfortran.dg/bind_c_array_params_2.f90
===================================================================
--- gfortran.dg/bind_c_array_params_2.f90	(revision 191314)
+++ gfortran.dg/bind_c_array_params_2.f90	(working copy)
@@ -15,6 +15,7 @@ 
 call test(aa)
 end
 
-! { dg-final { scan-assembler-times "myBindC" 1 } }
+! { dg-final { scan-assembler-times "myBindC" 1 { target { ! { hppa*-*-hpux* } } } } }
+! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-hpux* } } } }
 ! { dg-final { scan-tree-dump-times "test \\\(&parm\\." 1 "original" } }
 ! { dg-final { cleanup-tree-dump "original" } }