shithub: scc

Download patch

ref: d913a96fcbfe9650f1f824283a87de6586a8efdb
parent: 1d36866ee5505eec6d0310522e5ba8879d44f5bd
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 16 01:08:45 EST 2021

cc2/qbe: Whitespace change

--- a/src/cmd/cc/cc2/target/qbe/cgen.c
+++ b/src/cmd/cc/cc2/target/qbe/cgen.c
@@ -600,32 +600,32 @@
 
 		setlabel(phi->u.sym);
 		return tmp;
-        case OMOD:
-        case OSHR:
+	case OMOD:
+	case OSHR:
 		assert(tp->flags & INTF);
-        case ODIV:
-        case OLT:
-        case OGT:
-        case OLE:
-        case OGE:
-                /*
-                 * unsigned version of operations are always +1 the
-                 * signed version
-                 */
-                off = (tp->flags & SIGNF) == 0;
-                goto binary;
-        case OSHL:
-        case OBAND:
-        case OBOR:
-        case OBXOR:
+	case ODIV:
+	case OLT:
+	case OGT:
+	case OLE:
+	case OGE:
+		/*
+		 * unsigned version of operations are always +1 the
+		 * signed version
+		 */
+		off = (tp->flags & SIGNF) == 0;
+		goto binary;
+	case OSHL:
+	case OBAND:
+	case OBOR:
+	case OBXOR:
 		assert(tp->flags & INTF);
-        case OADD:
-        case OSUB:
-        case OMUL:
-        case OEQ:
-        case ONE:
-                off = 0;
-        binary:
+	case OADD:
+	case OSUB:
+	case OMUL:
+	case OEQ:
+	case ONE:
+		off = 0;
+	binary:
 		if (l->complex >= r->complex) {
 			l = rhs(l);
 			r = rhs(r);
@@ -634,15 +634,15 @@
 			l = rhs(l);
 		}
 
-                switch (tp->size) {
-                case 4:
-                        tbl = (tp->flags & FLOATF) ? opasms : opasmw;
-                        break;
-                case 8:
-                        tbl = (tp->flags & FLOATF) ? opasmd : opasml;
-                        break;
-                default:
-                        abort();
+		switch (tp->size) {
+		case 4:
+			tbl = (tp->flags & FLOATF) ? opasms : opasmw;
+			break;
+		case 8:
+			tbl = (tp->flags & FLOATF) ? opasmd : opasml;
+			break;
+		default:
+			abort();
                 }
 		op = tbl[np->op] + off;
 		tmp = tmpnode(tp);