shithub: scc

Download patch

ref: a63dd7c3e1fe8e41223a178f0b38a3354bd34d5e
parent: 413a22a6e064b749973eff9083503e14e2cffd0f
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Aug 12 10:37:34 EDT 2016

[cc2-qbe] Fix OSNEG in sethi()

After the addition of operator 'n' ONEG in so longer
the sign negation, and this case was not changed to
use the new name.

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -402,7 +402,7 @@
 		np->op = OAND;
 		rp = constnode(~(TUINT) 0, &np->type);
 		goto binary;
-	case ONEG:
+	case OSNEG:
 		np->op = OSUB;
 		rp = lp;
 		lp = constnode(0, &np->type);