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.target/] [mips/] [truncate-1.c] - Blame information for rev 424

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

Line No. Rev Author Line
1 321 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-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.