URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do "compile" }
|
! { dg-do "compile" }
|
! { dg-options "-O3 -fwhole-file -fdump-tree-optimized" }
|
! { dg-options "-O3 -fwhole-file -fdump-tree-optimized" }
|
! { dg-add-options bind_pic_locally }
|
! { dg-add-options bind_pic_locally }
|
!
|
!
|
! Check that inlining of functions declared BEFORE usage works.
|
! Check that inlining of functions declared BEFORE usage works.
|
! If yes, then the dump does not contain a call to F().
|
! If yes, then the dump does not contain a call to F().
|
!
|
!
|
|
|
INTEGER FUNCTION f()
|
INTEGER FUNCTION f()
|
f = 42
|
f = 42
|
END FUNCTION
|
END FUNCTION
|
|
|
PROGRAM main
|
PROGRAM main
|
INTEGER :: a, f
|
INTEGER :: a, f
|
a = f()
|
a = f()
|
print *, a, f()
|
print *, a, f()
|
END PROGRAM
|
END PROGRAM
|
|
|
! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }
|
! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }
|
! { dg-final { cleanup-tree-dump "optimized" } }
|
! { dg-final { cleanup-tree-dump "optimized" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.