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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-O -fdump-tree-original" }
3
! PR 40628 - optimize unnecessary TRIMs on assignment
4
program main
5
  character(len=3) :: a
6
  character(len=4) :: b,c
7
  b = 'abcd'
8
  a = trim(b)
9
  c = trim(trim(a))
10
  if (a /= 'abc') call abort
11
  if (c /= 'abc') call abort
12
end program main
13
 
14
! { dg-final { scan-tree-dump-times "memmove" 2 "original" } }
15
! { dg-final { scan-tree-dump-times "string_trim" 0 "original" } }
16
! { dg-final { cleanup-tree-dump "original" } }

powered by: WebSVN 2.1.0

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