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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20030626-1.c] - Blame information for rev 701

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR optimization/11210 */
2
/* Originator: Guido Classen <guido@clagi.de> */
3
/* Reduced testcase by Falk Hueffner <falk@debian.org> */
4
/* { dg-do compile } */
5
/* { dg-options "-O" } */
6
 
7
/* Verify that the constant expressions folder doesn't
8
   throw away the cast operation in the comparison.  */
9
 
10
struct str {
11
  int head;
12
  signed char data[8];
13
};
14
 
15
int foo(struct str t)
16
{
17
  return t.data[0] || (unsigned char) t.data[2] != 130; /* { dg-bogus "comparison is always 1" } */
18
}

powered by: WebSVN 2.1.0

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