Browse Source

* use generic code for set+setelement on ppc64le

git-svn-id: trunk@30214 -
Jonas Maebe 10 years ago
parent
commit
cf5b42b4b2
1 changed files with 10 additions and 0 deletions
  1. 10 0
      compiler/ppcgen/ngppcadd.pas

+ 10 - 0
compiler/ppcgen/ngppcadd.pas

@@ -409,6 +409,16 @@ implementation
         opdone,
         cmpop  : boolean;
       begin
+        if target_info.endian=endian_little then
+          begin
+            { this code currently assumes big endian }
+            if (left.nodetype=setelementn) or (right.nodetype=setelementn) then
+              begin
+                inherited second_addsmallsetelement;
+                exit;
+              end
+          end;
+
         cgop:=OP_None;
 
         pass_left_and_right;