소스 검색

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

git-svn-id: branches/jvmbackend@18813 -
Jonas Maebe 14 년 전
부모
커밋
54f9947406
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/jvm/hlcgcpu.pas

+ 2 - 1
compiler/jvm/hlcgcpu.pas

@@ -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;