From e91d12158122b23271ff49de8977c92fef7f3908 Mon Sep 17 00:00:00 2001 From: Eyal Sawady Date: Mon, 17 Jan 2022 22:00:48 +0000 Subject: Add a negation instruction Necessary for floating-point negation, because `%result = sub 0, %operand` doesn't give the correct sign for 0/-0. --- tools/lexh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lexh.c') diff --git a/tools/lexh.c b/tools/lexh.c index 2ebb022..3c5ae24 100644 --- a/tools/lexh.c +++ b/tools/lexh.c @@ -8,7 +8,7 @@ char *tok[] = { - "add", "sub", "div", "rem", "udiv", "urem", "mul", + "add", "sub", "neg", "div", "rem", "udiv", "urem", "mul", "and", "or", "xor", "sar", "shr", "shl", "stored", "stores", "storel", "storew", "storeh", "storeb", "load", "loadsw", "loaduw", "loadsh", "loaduh", -- cgit 1.4.1