1//===- subzero/crosstest/test_icmp.def - macros for tests -----*- 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 defines macros for crosstesting the icmp instruction. 11// 12//===----------------------------------------------------------------------===// 13 14#ifndef TEST_ICMP_DEF 15#define TEST_ICMP_DEF 16 17#define XSTR(s) STR(s) 18#define STR(s) #s 19 20#define ICMP_U_TABLE \ 21 /* cmp, operator */ \ 22 X(Eq, ==) \ 23 X(Ne, !=) \ 24 X(Ugt, >) \ 25 X(Uge, >=) \ 26 X(Ult, <) \ 27 X(Ule, <=) \ 28//#define X(cmp, op) 29 30#define ICMP_S_TABLE \ 31 /* cmp, operator */ \ 32 X(Sgt, >) \ 33 X(Sge, >=) \ 34 X(Slt, <) \ 35 X(Sle, <=) \ 36//#define X(cmp, op) 37 38#endif // TEST_ICMP_DEF 39