shithub: riscv

Download patch

ref: c184d2602d62225997fd1c5eae9fd602f7924d5b
parent: cd3053a3cc2e1dd751efc17a0e23b4d5a2b62341
author: cinap_lenrek <[email protected]>
date: Sun Nov 1 07:09:03 EST 2015

5c: handle (rare) MULU instruction in peephole optimizer

--- a/sys/src/cmd/5c/peep.c
+++ b/sys/src/cmd/5c/peep.c
@@ -306,6 +306,7 @@
 		case AAND:
 		case AEOR:
 		case AMUL:
+		case AMULU:
 		case ADIV:
 		case ADIVU:
 
@@ -977,6 +978,7 @@
 	case AAND:
 	case AEOR:
 	case AMUL:
+	case AMULU:
 	case ADIV:
 	case ADIVU:
 	case AADDF:
@@ -1112,6 +1114,7 @@
 	case AAND:
 	case AEOR:
 	case AMUL:
+	case AMULU:
 	case ADIV:
 	case ADIVU:
 		return D_REG;