From c637bd3156aa80e845668f8466e5423ba5539aae Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Mon, 19 Aug 2024 23:11:19 +0530 Subject: Add tacky for relational and logical operators --- src/cljcc/emit.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cljcc/emit.clj') 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)])) -- cgit v1.2.3