• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- subzero/crosstest/test_calling_conv.h - Test prototypes --*- C++ -*-===//
2 //
3 //                        The Subzero Code Generator
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the function prototypes for crosstesting the calling
11 // convention.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #include "test_calling_conv.def"
16 #include "vectors.h"
17 #include "xdefs.h"
18 
19 typedef void (*CalleePtrTy)();
20 extern CalleePtrTy Callee;
21 extern size_t ArgNum;
22 extern char *Buf;
23 
24 void caller_i();
25 void caller_alloca_i();
26 typedef void callee_i_Ty(int);
27 callee_i_Ty callee_i;
28 callee_i_Ty callee_alloca_i;
29 
30 void caller_vvvvv();
31 typedef void(callee_vvvvv_Ty)(v4si32, v4si32, v4si32, v4si32, v4si32);
32 callee_vvvvv_Ty callee_vvvvv;
33 
34 void caller_vlvilvfvdviv();
35 typedef void(callee_vlvilvfvdviv_Ty)(v4f32, int64, v4f32, int, int64, v4f32,
36                                      float, v4f32, double, v4f32, int, v4f32);
37 callee_vlvilvfvdviv_Ty callee_vlvilvfvdviv;
38