summaryrefslogtreecommitdiff
path: root/testsuite/tests/cmm/should_run/cmp64_cmm.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cmm/should_run/cmp64_cmm.cmm')
-rw-r--r--testsuite/tests/cmm/should_run/cmp64_cmm.cmm31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/tests/cmm/should_run/cmp64_cmm.cmm b/testsuite/tests/cmm/should_run/cmp64_cmm.cmm
new file mode 100644
index 0000000000..9df9954f52
--- /dev/null
+++ b/testsuite/tests/cmm/should_run/cmp64_cmm.cmm
@@ -0,0 +1,31 @@
+#include "Cmm.h"
+
+#define TEST(name, op) \
+ name (bits64 x, bits64 y) { \
+ if(x `op` y) { \
+ return (1); \
+ } else { \
+ return (0); \
+ } \
+ }
+
+cmm_func_test(bits64 foo, bits64 bar) {
+ return (1);
+}
+
+TEST(test_lt, lt)
+TEST(test_gt, gt)
+
+TEST(test_ne, ne)
+TEST(test_eq, eq)
+
+TEST(test_ge, ge)
+TEST(test_le, le)
+
+TEST(test_geu, geu)
+TEST(test_leu, leu)
+
+TEST(test_ltu, ltu)
+TEST(test_gtu, gtu)
+
+