aboutsummaryrefslogtreecommitdiff
path: root/ops.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-02-10 15:35:56 -0800
committerMichael Forney <mforney@mforney.org>2022-02-10 15:35:56 -0800
commit28fdb0f046184e567e85b9bb40dc942ca1739d9f (patch)
treef292aa8a8f6934be35ca9982effb5bd5e811d368 /ops.h
parent704382569df976ab94d2b4d6ef7b5926c2de5de0 (diff)
qbe: Switch to unary negation
This fixes bugs involving floating point negative zero.
Diffstat (limited to 'ops.h')
-rw-r--r--ops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ops.h b/ops.h
index b8b461a..9b2d48b 100644
--- a/ops.h
+++ b/ops.h
@@ -1,6 +1,7 @@
/* arithmetic and bits */
OP(IADD, "add")
OP(ISUB, "sub")
+OP(INEG, "neg")
OP(IDIV, "div")
OP(IMUL, "mul")
OP(IUDIV, "udiv")