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 "-O -ffast-math -fdump-tree-original -fdump-tree-optimized" }
|
! { dg-options "-O -ffast-math -fdump-tree-original -fdump-tree-optimized" }
|
|
|
! Verify we associate properly during folding
|
! Verify we associate properly during folding
|
! Verify we propagate constants in the presence of PAREN_EXPR
|
! Verify we propagate constants in the presence of PAREN_EXPR
|
|
|
function test(a)
|
function test(a)
|
real b, c, d
|
real b, c, d
|
c = a
|
c = a
|
d = 5
|
d = 5
|
b = (c + 5 - c)
|
b = (c + 5 - c)
|
b = (c + d - c)
|
b = (c + d - c)
|
test = a + b - 5
|
test = a + b - 5
|
end
|
end
|
|
|
! { dg-final { scan-tree-dump "b = 5" "original" } }
|
! { dg-final { scan-tree-dump "b = 5" "original" } }
|
! { dg-final { scan-tree-dump "c_. = .a" "optimized" } }
|
! { dg-final { scan-tree-dump "c_. = .a" "optimized" } }
|
! { dg-final { scan-tree-dump "return c_.;" "optimized" } }
|
! { dg-final { scan-tree-dump "return c_.;" "optimized" } }
|
! { dg-final { cleanup-tree-dump "original" } }
|
! { dg-final { cleanup-tree-dump "original" } }
|
! { 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.