shithub: riscv

Download patch

ref: 59ff04ddb1b845bfd8542c886bb42c5cb3112a0b
parent: fe594760ebddac23e673d189d2152062ef75d8b8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed May 1 09:11:20 EDT 2019

7l: add missing AFMOVD with EXT/AUTO/LOREG operands to optab

--- a/sys/src/cmd/7l/optab.c
+++ b/sys/src/cmd/7l/optab.c
@@ -353,17 +353,25 @@
 	{ AFMOVS,	C_FREG,	C_NONE,	C_LAUTO,	30, 8, REGSP,	LTO },
 	{ AFMOVS,	C_FREG,	C_NONE,	C_LOREG,	30, 8, 0,	LTO },
 
+	{ AFMOVD,	C_FREG,	C_NONE,	C_LEXT,		30, 8, REGSB,	LTO },
+	{ AFMOVD,	C_FREG,	C_NONE,	C_LAUTO,	30, 8, REGSP,	LTO },
+	{ AFMOVD,	C_FREG,	C_NONE,	C_LOREG,	30, 8, 0,	LTO },
+
 	{ AFMOVS,	C_LEXT,	C_NONE,	C_FREG,		31, 8, REGSB,	LFROM },
 	{ AFMOVS,	C_LAUTO,C_NONE,	C_FREG,		31, 8, REGSP,	LFROM },
 	{ AFMOVS,	C_LOREG,C_NONE,	C_FREG,		31, 8, 0,	LFROM },
 
+	{ AFMOVD,	C_LEXT,	C_NONE,	C_FREG,		31, 8, REGSB,	LFROM },
+	{ AFMOVD,	C_LAUTO,C_NONE,	C_FREG,		31, 8, REGSP,	LFROM },
+	{ AFMOVD,	C_LOREG,C_NONE,	C_FREG,		31, 8, 0,	LFROM },
+
 	{ AFMOVS,	C_FREG,	C_NONE,	C_ADDR,		64, 8, 0,	LTO },
 	{ AFMOVS,	C_ADDR,	C_NONE,	C_FREG,		65, 8, 0,	LFROM },
 
-	{ AFADDS,		C_FREG,	C_NONE,	C_FREG,		54, 4, 0 },
-	{ AFADDS,		C_FREG,	C_REG,	C_FREG,		54, 4, 0 },
-	{ AFADDS,		C_FCON,	C_NONE,	C_FREG,		54, 4, 0 },
-	{ AFADDS,		C_FCON,	C_REG,	C_FREG,		54, 4, 0 },
+	{ AFADDS,	C_FREG,	C_NONE,	C_FREG,		54, 4, 0 },
+	{ AFADDS,	C_FREG,	C_REG,	C_FREG,		54, 4, 0 },
+	{ AFADDS,	C_FCON,	C_NONE,	C_FREG,		54, 4, 0 },
+	{ AFADDS,	C_FCON,	C_REG,	C_FREG,		54, 4, 0 },
 
 	{ AFMOVS,	C_FCON,	C_NONE,	C_FREG,		54, 4, 0 },
 	{ AFMOVS,	C_FREG, C_NONE, C_FREG,		54, 4, 0 },