blob: 6cff49bf34c53a2d2a9c44b533199f738fc143cc [file] [log] [blame]
Matt Wala105b7042014-08-11 19:56:19 -07001//===- 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
18typedef void (*CalleePtrTy)();
19extern CalleePtrTy Callee;
20extern size_t ArgNum;
21extern char *Buf;
22
23void caller_i();
24void caller_alloca_i();
25typedef void callee_i_Ty(int);
26callee_i_Ty callee_i;
27callee_i_Ty callee_alloca_i;
28
29void caller_vvvvv();
Jim Stichnothdd842db2015-01-27 12:53:53 -080030typedef void(callee_vvvvv_Ty)(v4si32, v4si32, v4si32, v4si32, v4si32);
Matt Wala105b7042014-08-11 19:56:19 -070031callee_vvvvv_Ty callee_vvvvv;
32
33void caller_vlvlivfvdviv();
34typedef void(callee_vlvlivfvdviv_Ty)(v4f32, int64_t, v4f32, int64_t, int, v4f32,
Jim Stichnothdd842db2015-01-27 12:53:53 -080035 float, v4f32, double, v4f32, int, v4f32);
Matt Wala105b7042014-08-11 19:56:19 -070036callee_vlvlivfvdviv_Ty callee_vlvlivfvdviv;