Explorar o código

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

git-svn-id: trunk@38407 -
florian %!s(int64=7) %!d(string=hai) anos
pai
achega
23722a2f95
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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: