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

Unified Diff: crosstest/test_icmp.h

Issue 412593002: Lower icmp operations between vector values. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Remove unused typedefs. 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 | « crosstest/runtests.sh ('k') | crosstest/test_icmp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_icmp.h
diff --git a/crosstest/test_icmp.h b/crosstest/test_icmp.h
index d4ce9f15c8b879a5ed400dff597b98d3f0093faf..52a9f2236636983d1cdddaed81f83a7717f2bf3c 100644
--- a/crosstest/test_icmp.h
+++ b/crosstest/test_icmp.h
@@ -1,10 +1,29 @@
+//===- subzero/crosstest/test_icmp.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 icmp
+// bitcode instruction.
+//
+//===----------------------------------------------------------------------===//
+
#include "test_icmp.def"
+#include "vectors.h"
+
#define X(cmp, op) \
bool icmp##cmp(uint8_t a, uint8_t b); \
bool icmp##cmp(uint16_t a, uint16_t b); \
bool icmp##cmp(uint32_t a, uint32_t b); \
- bool icmp##cmp(uint64_t a, uint64_t b);
+ bool icmp##cmp(uint64_t a, uint64_t b); \
+ v4ui32 icmp##cmp(v4ui32 a, v4ui32 b); \
+ v8ui16 icmp##cmp(v8ui16 a, v8ui16 b); \
+ v16ui8 icmp##cmp(v16ui8 a, v16ui8 b);
ICMP_U_TABLE
#undef X
@@ -12,6 +31,17 @@ ICMP_U_TABLE
bool icmp##cmp(int8_t a, int8_t b); \
bool icmp##cmp(int16_t a, int16_t b); \
bool icmp##cmp(int32_t a, int32_t b); \
- bool icmp##cmp(int64_t a, int64_t b);
+ bool icmp##cmp(int64_t a, int64_t b); \
+ v4si32 icmp##cmp(v4si32 a, v4si32 b); \
+ v8si16 icmp##cmp(v8si16 a, v8si16 b); \
+ v16si8 icmp##cmp(v16si8 a, v16si8 b);
+ICMP_S_TABLE
+#undef X
+
+#define X(cmp, op) \
+ v4si32 icmpi1##cmp(v4si32 a, v4si32 b); \
+ v8si16 icmpi1##cmp(v8si16 a, v8si16 b); \
+ v16si8 icmpi1##cmp(v16si8 a, v16si8 b);
+ICMP_U_TABLE
ICMP_S_TABLE
#undef X
« no previous file with comments | « crosstest/runtests.sh ('k') | crosstest/test_icmp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698