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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr46126.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
typedef struct TypHeader {
4
     struct TypHeader * * ptr;
5
     unsigned char type;
6
 } * TypHandle;
7
 extern TypHandle (* EvTab[81]) ( TypHandle hd );
8
 TypHandle FunApplyRel ( TypHandle hdCall )
9
 {
10
     TypHandle hdApp;
11
     TypHandle * ptApp;
12
     long lp;
13
     long lc;
14
     hdApp = ((long)(((TypHandle*)((hdCall)->ptr))[1])&1 ?
15
(((TypHandle*)((hdCall)->ptr))[1]) : (*
16
EvTab[(((long)(((TypHandle*)((hdCall)->ptr))[1]) & 1) ? 1 :
17
((((TypHandle*)((hdCall)->ptr))[1])->type))])((((TypHandle*)((hdCall)->ptr))[1])));
18
     ptApp = ((TypHandle*)((hdApp)->ptr));
19
     ptApp[1] = ((TypHandle) (((long)(lp) << 2) + 1));
20
     ptApp[2] = ((TypHandle) (((long)(lc) << 2) + 1));
21
 }
22
 
23
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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