From b665efca04c161ad5c9bfb2b7fb425c694ff639a Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 17 Sep 2018 15:03:44 +0100 Subject: [PATCH] ACK loi 1 and sti 1 load and store unsigned bytes. I think. --- mach/mips/mcg/table | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mach/mips/mcg/table b/mach/mips/mcg/table index 955e09ace..0703b156f 100644 --- a/mach/mips/mcg/table +++ b/mach/mips/mcg/table @@ -273,11 +273,11 @@ PATTERNS cost 12; out:(int)ushort0 = LOADH.I(addr:address) - emit "lh %out, %addr" + emit "lhu %out, %addr" cost 4; out:(int)ubyte0 = LOADB.I(addr:address) - emit "lb %out, %addr" + emit "lbu %out, %addr" cost 4; out:(float)reg = LOAD.F(addr:address)