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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « crosstest/runtests.sh ('k') | crosstest/test_icmp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/crosstest/test_icmp.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 icmp
11 // bitcode instruction.
12 //
13 //===----------------------------------------------------------------------===//
14
1 #include "test_icmp.def" 15 #include "test_icmp.def"
2 16
17 #include "vectors.h"
18
3 #define X(cmp, op) \ 19 #define X(cmp, op) \
4 bool icmp##cmp(uint8_t a, uint8_t b); \ 20 bool icmp##cmp(uint8_t a, uint8_t b); \
5 bool icmp##cmp(uint16_t a, uint16_t b); \ 21 bool icmp##cmp(uint16_t a, uint16_t b); \
6 bool icmp##cmp(uint32_t a, uint32_t b); \ 22 bool icmp##cmp(uint32_t a, uint32_t b); \
7 bool icmp##cmp(uint64_t a, uint64_t b); 23 bool icmp##cmp(uint64_t a, uint64_t b); \
24 v4ui32 icmp##cmp(v4ui32 a, v4ui32 b); \
25 v8ui16 icmp##cmp(v8ui16 a, v8ui16 b); \
26 v16ui8 icmp##cmp(v16ui8 a, v16ui8 b);
8 ICMP_U_TABLE 27 ICMP_U_TABLE
9 #undef X 28 #undef X
10 29
11 #define X(cmp, op) \ 30 #define X(cmp, op) \
12 bool icmp##cmp(int8_t a, int8_t b); \ 31 bool icmp##cmp(int8_t a, int8_t b); \
13 bool icmp##cmp(int16_t a, int16_t b); \ 32 bool icmp##cmp(int16_t a, int16_t b); \
14 bool icmp##cmp(int32_t a, int32_t b); \ 33 bool icmp##cmp(int32_t a, int32_t b); \
15 bool icmp##cmp(int64_t a, int64_t b); 34 bool icmp##cmp(int64_t a, int64_t b); \
35 v4si32 icmp##cmp(v4si32 a, v4si32 b); \
36 v8si16 icmp##cmp(v8si16 a, v8si16 b); \
37 v16si8 icmp##cmp(v16si8 a, v16si8 b);
16 ICMP_S_TABLE 38 ICMP_S_TABLE
17 #undef X 39 #undef X
40
41 #define X(cmp, op) \
42 v4si32 icmpi1##cmp(v4si32 a, v4si32 b); \
43 v8si16 icmpi1##cmp(v8si16 a, v8si16 b); \
44 v16si8 icmpi1##cmp(v16si8 a, v16si8 b);
45 ICMP_U_TABLE
46 ICMP_S_TABLE
47 #undef X
OLDNEW
« 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