Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: crosstest/test_arith.h

Issue 407543003: Factor out common vector crosstesting code. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Add missing include guard #endif comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crosstest/test_arith_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_arith.h
diff --git a/crosstest/test_arith.h b/crosstest/test_arith.h
index a12ea242c304ef15a11ccfbd9ee1ab754a154cef..20591d560d3117a79f2a5f095126197a4cf0d39d 100644
--- a/crosstest/test_arith.h
+++ b/crosstest/test_arith.h
@@ -1,14 +1,21 @@
+//===- subzero/crosstest/test_arith.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 used for crosstesting arithmetic
+// operations.
+//
+//===----------------------------------------------------------------------===//
+
#include <stdint.h>
#include "test_arith.def"
-// Vector types
-typedef int32_t v4si32 __attribute__((vector_size(16)));
-typedef uint32_t v4ui32 __attribute__((vector_size(16)));
-typedef int16_t v8si16 __attribute__((vector_size(16)));
-typedef uint16_t v8ui16 __attribute__((vector_size(16)));
-typedef int8_t v16si8 __attribute__((vector_size(16)));
-typedef uint8_t v16ui8 __attribute__((vector_size(16)));
-typedef float v4f32 __attribute__((vector_size(16)));
+#include "vectors.h"
#define X(inst, op, isdiv) \
bool test##inst(bool a, bool b); \
« no previous file with comments | « no previous file | crosstest/test_arith_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698