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-seq-1.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* Check if we expand seq and sne.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-march=octeon" } */
5
/* { dg-final { scan-assembler-times "\tseq\t|\tseqi\t" 4 } } */
6
/* { dg-final { scan-assembler-times "\tsne\t|\tsnei\t" 4 } } */
7
 
8
#define TEST(N, LHS, REL, RHS) \
9
  NOMIPS16 int f##N (int a, int b) { return LHS REL RHS; }
10
 
11
TEST (0, a, ==, b);
12
TEST (1, a, ==, 23);
13
TEST (2, a, ==, 511);
14
TEST (3, a, ==, -200);
15
 
16
TEST (10, a, !=, b);
17
TEST (11, a, !=, 1);
18
TEST (12, a, !=, 350);
19
TEST (13, a, !=, -512);

powered by: WebSVN 2.1.0

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