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

Side by Side Diff: crosstest/test_icmp.cpp

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL Created 6 years, 7 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/test_icmp.h ('k') | crosstest/test_icmp.def » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // This aims to test the icmp bitcode instruction across all PNaCl
2 // primitive integer types.
3
4 #include <stdint.h>
5
6 #include "test_icmp.h"
7
8 #define X(cmp, op) \
9 bool icmp##cmp(uint8_t a, uint8_t b) { return a op b; } \
10 bool icmp##cmp(uint16_t a, uint16_t b) { return a op b; } \
11 bool icmp##cmp(uint32_t a, uint32_t b) { return a op b; } \
12 bool icmp##cmp(uint64_t a, uint64_t b) { return a op b; }
13 ICMP_U_TABLE
14 #undef X
15 #define X(cmp, op) \
16 bool icmp##cmp(int8_t a, int8_t b) { return a op b; } \
17 bool icmp##cmp(int16_t a, int16_t b) { return a op b; } \
18 bool icmp##cmp(int32_t a, int32_t b) { return a op b; } \
19 bool icmp##cmp(int64_t a, int64_t b) { return a op b; }
20 ICMP_S_TABLE
21 #undef X
OLDNEW
« no previous file with comments | « crosstest/test_icmp.h ('k') | crosstest/test_icmp.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698