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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [truncate-1.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-O -mgp64" } */
2
 
3
#define TEST(ID, TYPE, SHIFT)                           \
4
  int __attribute__((nomips16))                         \
5
  f##ID (unsigned long long y)                          \
6
  {                                                     \
7
    return (TYPE) ((TYPE) (y >> SHIFT) + 1);            \
8
  }
9
 
10
TEST (1, int, 32)
11
TEST (2, short, 32)
12
TEST (3, char, 32)
13
TEST (4, int, 33)
14
TEST (5, short, 33)
15
TEST (6, char, 33)
16
TEST (7, int, 61)
17
TEST (8, short, 61)
18
TEST (9, char, 61)
19
 
20
/* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */

powered by: WebSVN 2.1.0

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