* no need to zero-extend after a load of a widechar

git-svn-id: branches/jvmbackend@18813 -
This commit is contained in:
Jonas Maebe 2011-08-23 15:26:01 +00:00
parent c07c633b6a
commit 54f9947406

View File

@ -1797,7 +1797,8 @@ implementation
finishandval:=-1;
{ erase sign extension for byte/smallint loads }
if (def2regtyp(def)=R_INTREGISTER) and
not is_signed(def) then
not is_signed(def) and
not is_widechar(def) then
case def.size of
1: finishandval:=255;
2: finishandval:=65535;