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

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-gimple" } */
3
 
4
int f (int a) {
5
        return (a << 3) << 6;
6
}
7
 
8
int g (int b) {
9
        return (b >> 5) << 5;
10
}
11
 
12
unsigned long long h (unsigned long long c) {
13
        return (c << 60) >> 60;
14
}
15
 
16
int l (int d) {
17
        return (d << 6) >> 6;
18
}
19
 
20
/* { dg-final { scan-tree-dump "a << 9" "gimple" } } */
21
/* { dg-final { scan-tree-dump "b & -32" "gimple" } } */
22
/* { dg-final { scan-tree-dump "c & 15" "gimple" } } */
23
/* { dg-final { scan-tree-dump "d << 6" "gimple" } } */
24
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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