Ver código fonte

* avoid some more "movq %xmm0, %xmm0" instructions by setting the subreg
of function results to R_SUBMMWHOLE (default was R_SUBMMNONE, which didn't
match registers allocated later)

git-svn-id: trunk@15384 -

Jonas Maebe 15 anos atrás
pai
commit
dd759ba906
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      compiler/x86_64/cpupara.pas

+ 4 - 1
compiler/x86_64/cpupara.pas

@@ -912,7 +912,10 @@ unit cpupara;
                             paraloc^.size:=OS_F64;
                           end;
                         else
-                          paraloc^.size:=OS_M64;
+                          begin
+                            setsubreg(paraloc^.register,R_SUBMMWHOLE);
+                            paraloc^.size:=OS_M64;
+                          end;
                       end;
                       inc(mmretregidx);
                     end;