Explorar el Código

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

git-svn-id: trunk@38407 -
florian hace 7 años
padre
commit
23722a2f95
Se han modificado 1 ficheros con 5 adiciones y 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
                        if i<tcgsize2size[size] then
                          NextTmp;
                          NextTmp;
                    end;
                    end;
-                 end;
+                 end
+               else if size in [OS_S8,OS_8] then
+                 list.concat(taicpu.op_reg(A_NEG,dst))
+               else
+                 Internalerror(2018030401);
              end;
              end;
 
 
            OP_NOT:
            OP_NOT: