summaryrefslogtreecommitdiff
path: root/parse/ops.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-01-20 16:47:23 -0500
committerOri Bernstein <ori@eigenstate.org>2014-01-20 16:47:23 -0500
commit064b5d2b2f9c54fcbd0e928d75253032e51f7e6f (patch)
treea96baef34c893637f768df60651663f2a9bfef9a /parse/ops.def
parent1750fba1a4fc55641cfd5a9ced3a33f012ff221f (diff)
downloadmc-064b5d2b2f9c54fcbd0e928d75253032e51f7e6f.tar.gz
Correctly handle signed/unsigned comparisons.
Diffstat (limited to 'parse/ops.def')
-rw-r--r--parse/ops.def18
1 files changed, 17 insertions, 1 deletions
diff --git a/parse/ops.def b/parse/ops.def
index 298ccb2..43d51bf 100644
--- a/parse/ops.def
+++ b/parse/ops.def
@@ -56,7 +56,8 @@ O(Ouget, 1)
O(Otup, 1)
O(Ostruct, 1)
O(Oarr, 1)
-/* backend-only */
+
+/* all below this point are backend-only */
O(Ocjmp, 1) /* conditional jump */
O(Oset, 1) /* store to var */
O(Osllen, 1) /* size of slice */
@@ -72,3 +73,18 @@ O(Ofsub, 1)
O(Ofmul, 1)
O(Ofdiv, 1)
O(Ofneg, 1)
+
+/* floating point comparisons */
+O(Ofeq, 1)
+O(Ofne, 1)
+O(Ofgt, 1)
+O(Ofge, 1)
+O(Oflt, 1)
+O(Ofle, 1)
+/* unsigned comparisons */
+O(Oueq, 1)
+O(Oune, 1)
+O(Ougt, 1)
+O(Ouge, 1)
+O(Oult, 1)
+O(Oule, 1)