Use "neg" when printing/reading unary negation rather than "-".
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Apr 2010 06:47:07 +0000 (23:47 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:42:07 +0000 (15:42 -0700)
"-" is now only used for binary subtraction.

ir.cpp

diff --git a/ir.cpp b/ir.cpp
index 3f4c40d0c996e9e103d440dd6bfa2ca355815493..63135e35533cab94fd93db0f92f1fee7254f0e58 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -111,7 +111,7 @@ ir_expression::get_num_operands(ir_expression_operation op)
 static const char *const operator_strs[] = {
    "~",
    "!",
-   "-",
+   "neg",
    "abs",
    "rcp",
    "rsq",