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/] [octeon-exts-6.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-options "-O -march=octeon -mgp64" } */
2
/* { dg-final { scan-assembler-times "\texts\t" 5 } } */
3
/* { dg-final { scan-assembler-not "\t(dsll|dsra)\t" } } */
4
/* { dg-final { scan-assembler-not "\tsll\t" } } */
5
 
6
#define TEST_CHAR(T, N) \
7
  NOMIPS16 T f##N (long long d, T *a, T *r) { T b = (char) d;  *r = b + *a; }
8
#define TEST_SHORT(T, N) \
9
  NOMIPS16 T g##N (long long d, T *a, T *r) { T b = (short) d; *r = b + *a; }
10
#define TEST(T, N) TEST_CHAR (T, N) TEST_SHORT (T, N)
11
 
12
TEST (int, 1);
13
TEST (long long, 2);
14
TEST_CHAR (short, 3);

powered by: WebSVN 2.1.0

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