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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr23584.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* Regression test for PR middle-end/23584 */
2
/* Verify that dereferencing an absolute address inside of a function
3
   makes that function impure.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-O1 -fdump-ipa-pure-const" } */
7
 
8
int test1 (void)
9
{
10
  return * (volatile int *) 0x1234;
11
}
12
 
13
int test2 (void)
14
{
15
  int local = * (volatile int *) 0x1234;
16
  return local;
17
}
18
 
19
/* { dg-final { scan-ipa-dump-not "found to be pure: test1" "pure-const" } } */
20
/* { dg-final { scan-ipa-dump-not "found to be pure: test2" "pure-const" } } */
21
/* { dg-final { cleanup-ipa-dump "pure-const" } } */

powered by: WebSVN 2.1.0

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