Chromium Code Reviews| Index: crosstest/test_calling_conv.h |
| diff --git a/crosstest/test_calling_conv.h b/crosstest/test_calling_conv.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9b27428fb0f0e77e16c5012c76eb7802e6a2d2bd |
| --- /dev/null |
| +++ b/crosstest/test_calling_conv.h |
| @@ -0,0 +1,36 @@ |
| +//===- subzero/crosstest/test_calling_conv.h - Test prototypes --*- C++ -*-===// |
| +// |
| +// The Subzero Code Generator |
| +// |
| +// This file is distributed under the University of Illinois Open Source |
| +// License. See LICENSE.TXT for details. |
| +// |
| +//===----------------------------------------------------------------------===// |
| +// |
| +// This file declares the function prototypes for crosstesting the calling |
| +// convention. |
| +// |
| +//===----------------------------------------------------------------------===// |
| + |
|
Jim Stichnoth
2014/08/06 18:26:16
You removed the include guard - why not keep it?
wala
2014/08/07 18:09:21
I changed test_calling_conv implementation changed
|
| +#include "test_calling_conv.def" |
| +#include "vectors.h" |
| + |
| +typedef void (*CalleePtrTy)(); |
| +extern CalleePtrTy Callee; |
| +extern size_t ArgNum; |
| +extern char *Buf; |
| + |
| +void caller_i(); |
| +void caller_alloca_i(); |
| +typedef void callee_i_Ty(int); |
| +callee_i_Ty callee_i; |
| +callee_i_Ty callee_alloca_i; |
| + |
| +void caller_vvvvv(); |
| +typedef void (callee_vvvvv_Ty)(v4si32, v4si32, v4si32, v4si32, v4si32); |
| +callee_vvvvv_Ty callee_vvvvv; |
| + |
| +void caller_vlvlvfvdviv(); |
| +typedef void(callee_vlvlvfvdviv_Ty)(v4f32, int64_t, v4f32, int64_t, v4f32, |
| + float, v4f32, double, v4f32, int, v4f32); |
| +callee_vlvlvfvdviv_Ty callee_vlvlvfvdviv, Subzero_callee_vlvlvfvdviv; |