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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20020517-1.c] - Blame information for rev 310

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

Line No. Rev Author Line
1 298 jeremybenn
/* This testcase caused ICE in do_SUBST on IA-32, because 0xf6 constant
2
   was not sign-extended for QImode.  */
3
/* { dg-do run } */
4
/* { dg-options "-O2" } */
5
/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
6
 
7
#include <limits.h>
8
 
9
void abort (void);
10
void exit (int);
11
 
12
void foo (void)
13
{
14
  int i;
15
  char *p;
16
 
17
  p = (char *) &i;
18
  *p = -10;
19
  if (* (unsigned char *) p != 0x100 - 10)
20
    abort ();
21
}
22
 
23
int main (void)
24
{
25
  if (UCHAR_MAX == 255)
26
    foo ();
27
  exit (0);
28
}

powered by: WebSVN 2.1.0

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