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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-std=c99 -O2" } */
3
/* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
4
/* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
5
 
6
extern void abort (void);
7
 
8
unsigned int  __attribute__((noinline))
9
test (int shift_size)
10
{
11
  unsigned long long res = ~0;
12
 
13
  return res << shift_size;
14
}
15
 
16
int
17
main ()
18
{
19
  int dst = 32;
20
 
21
  if (test (dst) != 0)
22
    abort ();
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.