OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [minmaxloc_5.f90] - Blame information for rev 708

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR35994 [4.3/4.4 regression] MAXLOC and MINLOC off by one with mask
3
program GA4076
4
  REAL DDA(100)
5
  dda = (/(J1,J1=1,100)/)
6
  IDS = MAXLOC(DDA,1)
7
  if (ids.ne.100) call abort  !expect 100
8
 
9
  IDS = MAXLOC(DDA,1, (/(J1,J1=1,100)/) > 50)
10
  if (ids.ne.100) call abort  !expect 100
11
 
12
  IDS = minLOC(DDA,1)
13
  if (ids.ne.1) call abort  !expect 1
14
 
15
  IDS = MinLOC(DDA,1, (/(J1,J1=1,100)/) > 50)
16
  if (ids.ne.51) call abort !expect 51
17
 
18
END

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.