You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
888 B
39 lines
888 B
//===- subzero/crosstest/test_icmp.def - macros for tests -----*- C++ -*---===//
|
|
//
|
|
// The Subzero Code Generator
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines macros for crosstesting the icmp instruction.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TEST_ICMP_DEF
|
|
#define TEST_ICMP_DEF
|
|
|
|
#define XSTR(s) STR(s)
|
|
#define STR(s) #s
|
|
|
|
#define ICMP_U_TABLE \
|
|
/* cmp, operator */ \
|
|
X(Eq, ==) \
|
|
X(Ne, !=) \
|
|
X(Ugt, >) \
|
|
X(Uge, >=) \
|
|
X(Ult, <) \
|
|
X(Ule, <=) \
|
|
//#define X(cmp, op)
|
|
|
|
#define ICMP_S_TABLE \
|
|
/* cmp, operator */ \
|
|
X(Sgt, >) \
|
|
X(Sge, >=) \
|
|
X(Slt, <) \
|
|
X(Sle, <=) \
|
|
//#define X(cmp, op)
|
|
|
|
#endif // TEST_ICMP_DEF
|