瀏覽代碼

* correctly negate 8 bit values on avr, resolves #33322

git-svn-id: trunk@38407 -
florian 7 年之前
父節點
當前提交
23722a2f95
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      compiler/avr/cgcpu.pas

+ 5 - 1
compiler/avr/cgcpu.pas

@@ -581,7 +581,11 @@ unit cgcpu;
                        if i<tcgsize2size[size] then
                          NextTmp;
                    end;
-                 end;
+                 end
+               else if size in [OS_S8,OS_8] then
+                 list.concat(taicpu.op_reg(A_NEG,dst))
+               else
+                 Internalerror(2018030401);
              end;
 
            OP_NOT: