aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/emit.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-08-19 23:11:19 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-08-19 23:11:19 +0530
commitc637bd3156aa80e845668f8466e5423ba5539aae (patch)
treeb110c147e5155aded9a972548b6f90f9f99104c6 /src/cljcc/emit.clj
parent5d09a16488112ab5d611a3693efcf1e73479a835 (diff)
Add tacky for relational and logical operators
Diffstat (limited to 'src/cljcc/emit.clj')
-rw-r--r--src/cljcc/emit.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cljcc/emit.clj b/src/cljcc/emit.clj
index 2bce107..e69f07a 100644
--- a/src/cljcc/emit.clj
+++ b/src/cljcc/emit.clj
@@ -49,7 +49,7 @@
(defn- unary-instruction-emit [instruction]
(let [operand (operand-emit (:operand instruction))
assembly-operator (condp = (:unary-operator instruction)
- :complement "notl"
+ :bit-not "notl"
:negate "negl"
(throw (AssertionError. (str "Invalid unary operator: " instruction))))]
[(format " %s %s" assembly-operator operand)]))