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/] [smod-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/18045 */
2
/* Contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-std=c99" } */
6
/* { dg-options "-std=c99 -mtune=i486" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
7
 
8
#include <limits.h>
9
 
10
extern void abort(void);
11
 
12
long long smod16(long long x)
13
{
14
  return x % 16;
15
}
16
 
17
int main(void)
18
{
19
#if LLONG_MAX > 2147483647L
20
  if (smod16 (0xFFFFFFFF) != 0xF)
21
    abort ();
22
#endif
23
 
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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