aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-27 09:31:30 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-27 09:31:30 +0000
commitca65141bc7cebea973cb62093a874cad0e9c642a (patch)
treed826f4a91c9273420429a517831371be8392aaf3
parent6ee04b19dc6106932e7498e34c1b4938a94bf074 (diff)
downloadcompcert-ca65141bc7cebea973cb62093a874cad0e9c642a.tar.gz
compcert-ca65141bc7cebea973cb62093a874cad0e9c642a.zip
Be more conservative in choosing the unrolled form of __builtin_memcpy.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2375 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
-rw-r--r--powerpc/PrintAsm.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerpc/PrintAsm.ml b/powerpc/PrintAsm.ml
index 108dbafe..764020a7 100644
--- a/powerpc/PrintAsm.ml
+++ b/powerpc/PrintAsm.ml
@@ -385,7 +385,7 @@ let print_builtin_memcpy oc sz al args =
match args with [IR d; IR s] -> (d, s) | _ -> assert false in
fprintf oc "%s begin builtin __builtin_memcpy_aligned, size = %d, alignment = %d\n"
comment sz al;
- if sz <= 64
+ if sz <= (if !Clflags.option_ffpu then 48 else 24)
then print_builtin_memcpy_small oc sz al src dst
else print_builtin_memcpy_big oc sz al src dst;
fprintf oc "%s end builtin __builtin_memcpy_aligned\n" comment